mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-14 02:43:23 +01:00
Fixed issue with runtime supplied typeinfo generating multiple symbols.
Added new ldc.llvmasm import in runtime cmake file.
This commit is contained in:
@@ -289,8 +289,13 @@ void DtoResolveTypeInfo(TypeInfoDeclaration* tid)
|
||||
LOG_SCOPE;
|
||||
|
||||
IrGlobal* irg = new IrGlobal(tid);
|
||||
irg->value = new llvm::GlobalVariable(irg->type.get(), true,
|
||||
TYPEINFO_LINKAGE_TYPE, NULL, tid->mangle(), gIR->module);
|
||||
|
||||
std::string mangle(tid->mangle());
|
||||
|
||||
irg->value = gIR->module->getGlobalVariable(mangle);
|
||||
if (!irg->value)
|
||||
irg->value = new llvm::GlobalVariable(irg->type.get(), true,
|
||||
TYPEINFO_LINKAGE_TYPE, NULL, mangle, gIR->module);
|
||||
|
||||
tid->ir.irGlobal = irg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user