From a55e98b68735f1e4152a01773f22d28c472138ab Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 13 Jun 2023 16:47:18 -0700 Subject: Changeset: 96 General maintainance (actually these changes are fro ma while ago, like Jan 2023 and I forgot what they do) --- source/20-codegen-compiler/CodegenDecl.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/20-codegen-compiler/CodegenDecl.hpp') diff --git a/source/20-codegen-compiler/CodegenDecl.hpp b/source/20-codegen-compiler/CodegenDecl.hpp index e645323..f1ac5b1 100644 --- a/source/20-codegen-compiler/CodegenDecl.hpp +++ b/source/20-codegen-compiler/CodegenDecl.hpp @@ -63,6 +63,17 @@ struct DeclStruct { const std::string& GetMangledName() const; }; +struct DeclXGlobalVar { + std::string name; + bool hasCtor = false; + bool hasDtor = false; + + static std::string MangleCtorName(std::string_view targetName); + std::string GetMangledCtorName() const { return MangleCtorName(name); } + static std::string MangleDtorName(std::string_view targetName); + std::string GetMangledDtorName() const { return MangleDtorName(name); } +}; + enum EnumUnderlyingType { EUT_Int8, EUT_Int16, -- cgit v1.2.3-70-g09d2