aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler/CodegenOutput.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-07-17 23:09:00 -0700
committerrtk0c <[email protected]>2022-07-17 23:09:00 -0700
commit8c2b1bd5bd85667a2ea24ec3aa85cbdd97f9ea1c (patch)
tree80b12277b667747aa4f18ebcc3931c2ea618cb1e /source/20-codegen-compiler/CodegenOutput.hpp
parentc6e57dc94e532442ffa0bd57a16206217adbca92 (diff)
Changeset: 85 Work on codegen (a big blob of changes about various things, giving up on writing a clear commit message)
- stuff along the lines of cleaning up store process - remove completed TODOs - move code generation out of parser loop - ^^^ also introduce some weird bugs of DeclXxx::name field disappearing -- maybe fixed, maybe didn't, can't reliably reproduce - add infra to mangle (not included in codegen yet, also not tested) - convert SourceFile storage map to node map, ensuring pointer stability (was broken before) - buildsystem asan and UBsan applying to all targest
Diffstat (limited to 'source/20-codegen-compiler/CodegenOutput.hpp')
-rw-r--r--source/20-codegen-compiler/CodegenOutput.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/20-codegen-compiler/CodegenOutput.hpp b/source/20-codegen-compiler/CodegenOutput.hpp
index aa28715..df949f5 100644
--- a/source/20-codegen-compiler/CodegenOutput.hpp
+++ b/source/20-codegen-compiler/CodegenOutput.hpp
@@ -1,7 +1,5 @@
#pragma once
-#include "CodegenDecl.hpp"
-
#include <Utils.hpp>
#include <robin_hood.h>
@@ -20,9 +18,6 @@ class CodegenOutput {
private:
robin_hood::unordered_set<std::string, StringHash, StringEqual> mRequestIncludes;
std::vector<CodegenOutputThing> mOutThings;
- std::vector<DeclStruct> mOutStructs;
- std::vector<DeclEnum> mOutEnums;
- std::vector<DeclFunction> mOutFunctions;
public:
std::string optionOutPrefix;
@@ -31,7 +26,7 @@ public:
public:
void AddRequestInclude(std::string_view include);
- void AddOutputThing(CodegenOutputThing thing);
+ void AddOutputThing(CodegenOutputThing thing, int placementLocation = -1);
void MergeContents(CodegenOutput other);