diff options
author | Richard Pennington <rich@pennware.com> | 2009-08-21 11:10:31 +0000 |
---|---|---|
committer | Richard Pennington <rich@pennware.com> | 2009-08-21 11:10:31 +0000 |
commit | a32b18391855df753a4b68c823f3ac07cb4fa461 (patch) | |
tree | b6ef082ee8d1372652cc1c605264137963904682 /lib/Analysis/DebugInfo.cpp | |
parent | e879bdad49f83679f4d69fd44d22a0ccf0fbb664 (diff) |
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
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index fb80b8346d..03e08862bd 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); |