mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-15 20:40:30 +00:00
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
This commit is contained in:
parent
e879bdad49
commit
a32b183918
@ -593,7 +593,7 @@ DICompileUnit DIFactory::CreateCompileUnit(unsigned LangID,
|
|||||||
|
|
||||||
M.addTypeName("llvm.dbg.compile_unit.type", Init->getType());
|
M.addTypeName("llvm.dbg.compile_unit.type", Init->getType());
|
||||||
GlobalVariable *GV = new GlobalVariable(M, Init->getType(), true,
|
GlobalVariable *GV = new GlobalVariable(M, Init->getType(), true,
|
||||||
GlobalValue::LinkOnceAnyLinkage,
|
GlobalValue::InternalLinkage,
|
||||||
Init, "llvm.dbg.compile_unit");
|
Init, "llvm.dbg.compile_unit");
|
||||||
GV->setSection("llvm.metadata");
|
GV->setSection("llvm.metadata");
|
||||||
return DICompileUnit(GV);
|
return DICompileUnit(GV);
|
||||||
@ -760,7 +760,7 @@ DISubprogram DIFactory::CreateSubprogram(DIDescriptor Context,
|
|||||||
|
|
||||||
M.addTypeName("llvm.dbg.subprogram.type", Init->getType());
|
M.addTypeName("llvm.dbg.subprogram.type", Init->getType());
|
||||||
GlobalVariable *GV = new GlobalVariable(M, Init->getType(), true,
|
GlobalVariable *GV = new GlobalVariable(M, Init->getType(), true,
|
||||||
GlobalValue::LinkOnceAnyLinkage,
|
GlobalValue::InternalLinkage,
|
||||||
Init, "llvm.dbg.subprogram");
|
Init, "llvm.dbg.subprogram");
|
||||||
GV->setSection("llvm.metadata");
|
GV->setSection("llvm.metadata");
|
||||||
return DISubprogram(GV);
|
return DISubprogram(GV);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user