# HG changeset patch # User lindquist # Date 1213211035 -7200 # Node ID 2f2d7c843e5d9758df43679591bbdfa34f3e939a # Parent fc9c1a0eabbde4e47c101ca746a37fd21b3ab70e [svn r268] Fixed: global debug info was still brokem ... should be done now!!! diff -r fc9c1a0eabbd -r 2f2d7c843e5d gen/toobj.cpp --- a/gen/toobj.cpp Wed Jun 11 20:53:26 2008 +0200 +++ b/gen/toobj.cpp Wed Jun 11 21:03:55 2008 +0200 @@ -133,7 +133,7 @@ // emit usedArray const LLArrayType* usedTy = LLArrayType::get(getVoidPtrType(), ir.usedArray.size()); LLConstant* usedInit = LLConstantArray::get(usedTy, ir.usedArray); - LLGlobalVariable* usedArray = new LLGlobalVariable(usedTy, true, LLGlobalValue::ExternalLinkage, usedInit, "llvm.used", ir.module); + LLGlobalVariable* usedArray = new LLGlobalVariable(usedTy, true, LLGlobalValue::AppendingLinkage, usedInit, "llvm.used", ir.module); usedArray->setSection("llvm.metadata"); // verify the llvm