From 8c2b1bd5bd85667a2ea24ec3aa85cbdd97f9ea1c Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 17 Jul 2022 23:09:00 -0700 Subject: 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 --- source/20-codegen-compiler/CodegenModelArchive.hpp | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100644 source/20-codegen-compiler/CodegenModelArchive.hpp (limited to 'source/20-codegen-compiler/CodegenModelArchive.hpp') diff --git a/source/20-codegen-compiler/CodegenModelArchive.hpp b/source/20-codegen-compiler/CodegenModelArchive.hpp deleted file mode 100644 index e67f4d9..0000000 --- a/source/20-codegen-compiler/CodegenModelArchive.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include "CodegenDecl.hpp" -#include "CodegenModel.hpp" - -#include -#include -#include - -class CodegenModelArchive { -private: - class Private; - Private* m; - -public: - CodegenModelArchive(std::string_view dbPath); - ~CodegenModelArchive(); - - // Implementation detail helper, don't use outside - Private& GetPimpl() const { return *m; } - - void DeleteDeclsRelatedToFile(std::string_view filename); - - void Store(const CodegenModel& model); - void LoadInto(CodegenModel& model) const; - CodegenModel Load() const; - - void StoreStruct(const DeclStruct& decl); - void StoreFunction(const DeclFunction& decl); - void StoreEnum(const DeclEnum& decl); -}; -- cgit v1.2.3-70-g09d2