From c1ae095f4c933f9a42aac950ebe403d6e565f83a Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Wed, 11 Jun 2008 21:03:55 +0200 Subject: [PATCH] [svn r268] Fixed: global debug info was still brokem ... should be done now!!! --- gen/toobj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/toobj.cpp b/gen/toobj.cpp index 49e02feb..7eb15e29 100644 --- a/gen/toobj.cpp +++ b/gen/toobj.cpp @@ -133,7 +133,7 @@ void Module::genobjfile() // 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