mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Fixed issue with runtime supplied typeinfo generating multiple symbols.
Added new ldc.llvmasm import in runtime cmake file.
This commit is contained in:
parent
740cdaa588
commit
14b8aff809
2 changed files with 8 additions and 2 deletions
|
@ -289,8 +289,13 @@ void DtoResolveTypeInfo(TypeInfoDeclaration* tid)
|
||||||
LOG_SCOPE;
|
LOG_SCOPE;
|
||||||
|
|
||||||
IrGlobal* irg = new IrGlobal(tid);
|
IrGlobal* irg = new IrGlobal(tid);
|
||||||
|
|
||||||
|
std::string mangle(tid->mangle());
|
||||||
|
|
||||||
|
irg->value = gIR->module->getGlobalVariable(mangle);
|
||||||
|
if (!irg->value)
|
||||||
irg->value = new llvm::GlobalVariable(irg->type.get(), true,
|
irg->value = new llvm::GlobalVariable(irg->type.get(), true,
|
||||||
TYPEINFO_LINKAGE_TYPE, NULL, tid->mangle(), gIR->module);
|
TYPEINFO_LINKAGE_TYPE, NULL, mangle, gIR->module);
|
||||||
|
|
||||||
tid->ir.irGlobal = irg;
|
tid->ir.irGlobal = irg;
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ if(D_VERSION EQUAL 1)
|
||||||
endmacro(imports_file)
|
endmacro(imports_file)
|
||||||
imports_file(import/ldc/cstdarg.di)
|
imports_file(import/ldc/cstdarg.di)
|
||||||
imports_file(import/ldc/intrinsics.di)
|
imports_file(import/ldc/intrinsics.di)
|
||||||
|
imports_file(internal/ldc/llvmasm.di)
|
||||||
imports_file(internal/ldc/bitmanip.d)
|
imports_file(internal/ldc/bitmanip.d)
|
||||||
imports_file(internal/ldc/vararg.d)
|
imports_file(internal/ldc/vararg.d)
|
||||||
# library names
|
# library names
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue