summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRichard Pennington <rich@pennware.com>2009-08-21 11:10:31 +0000
committerRichard Pennington <rich@pennware.com>2009-08-21 11:10:31 +0000
commit9e0c4f50ec93c2717970ca869794061863a7f130 (patch)
tree2394d7f5c0cfb2ebbb31c3a002d726c0611c2887 /llvm/lib
parentf715778de980b7962859726c01a871204814bc16 (diff)
downloadbcm5719-llvm-9e0c4f50ec93c2717970ca869794061863a7f130.tar.gz
bcm5719-llvm-9e0c4f50ec93c2717970ca869794061863a7f130.zip
bug 4530: Make debug information static to it is preservered during bitcode linking.
llvm-svn: 79616
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/DebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp
index fb80b8346d2..03e08862bd7 100644
--- a/llvm/lib/Analysis/DebugInfo.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud