changeset 1069:8038b106c458

Make CompileUnit linkage compatible with llvm trunk.
author Christian Kamm <kamm incasoftware de>
date Sun, 08 Mar 2009 16:30:39 +0100
parents 7db4bb9602ed
children 39e2f5e4af3d
files gen/todebug.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/todebug.cpp	Sun Mar 08 16:22:06 2009 +0100
+++ b/gen/todebug.cpp	Sun Mar 08 16:30:39 2009 +0100
@@ -507,7 +507,7 @@
     // if the linkage stays internal, we can't llvm-link the generated modules together:
     // llvm's DwarfWriter uses path and filename to determine the symbol name and we'd
     // end up with duplicate symbols
-    m->ir.irModule->diCompileUnit.getGV()->setLinkage(llvm::GlobalValue::LinkOnceLinkage);
+    m->ir.irModule->diCompileUnit.getGV()->setLinkage(DEBUGINFO_LINKONCE_LINKAGE_TYPE);
     m->ir.irModule->diCompileUnit.getGV()->setName(std::string("llvm.dbg.compile_unit_") + srcpath + m->srcfile->name->toChars());
 
     return m->ir.irModule->diCompileUnit;