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.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/20-codegen-compiler/CodegenDecl.cpp') diff --git a/source/20-codegen-compiler/CodegenDecl.cpp b/source/20-codegen-compiler/CodegenDecl.cpp index 9e88cfb..11e1bb5 100644 --- a/source/20-codegen-compiler/CodegenDecl.cpp +++ b/source/20-codegen-compiler/CodegenDecl.cpp @@ -2,6 +2,7 @@ #include "CodegenUtils.hpp" +#include #include const std::string& DeclStruct::GetMangledName() const { @@ -11,6 +12,14 @@ const std::string& DeclStruct::GetMangledName() const { return mangledName; } +std::string DeclXGlobalVar::MangleCtorName(std::string_view targetName) { + return fmt::format("{}_MANGLED_ctor", targetName); +} + +std::string DeclXGlobalVar::MangleDtorName(std::string_view targetName) { + return fmt::format("{}_MANGLED_dtor", targetName); +} + const std::string& DeclEnum::GetMangledName() const { if (mangledName.empty()) { mangledName = Utils::MakeMangledName(name, container); -- cgit v1.2.3-70-g09d2