From: Richard Pennington Date: Fri, 21 Aug 2009 11:10:31 +0000 (+0000) Subject: bug 4530: Make debug information static to it is preservered during bitcode linking. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a32b18391855df753a4b68c823f3ac07cb4fa461;p=oota-llvm.git bug 4530: Make debug information static to it is preservered during bitcode linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79616 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index fb80b8346d2..03e08862bd7 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -593,7 +593,7 @@ DICompileUnit DIFactory::CreateCompileUnit(unsigned LangID, M.addTypeName("llvm.dbg.compile_unit.type", Init->getType()); GlobalVariable *GV = new GlobalVariable(M, Init->getType(), true, - GlobalValue::LinkOnceAnyLinkage, + GlobalValue::InternalLinkage, Init, "llvm.dbg.compile_unit"); GV->setSection("llvm.metadata"); return DICompileUnit(GV); @@ -760,7 +760,7 @@ DISubprogram DIFactory::CreateSubprogram(DIDescriptor Context, M.addTypeName("llvm.dbg.subprogram.type", Init->getType()); GlobalVariable *GV = new GlobalVariable(M, Init->getType(), true, - GlobalValue::LinkOnceAnyLinkage, + GlobalValue::InternalLinkage, Init, "llvm.dbg.subprogram"); GV->setSection("llvm.metadata"); return DISubprogram(GV);