1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Construct a skeleton cu for each compile unit in the module, not just

for the first compile unit.

llvm-svn: 174352
This commit is contained in:
Eric Christopher 2013-02-05 07:32:03 +00:00
parent 05703549cf
commit 8c626f70e1

View File

@ -686,12 +686,12 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) {
if (!FirstCU)
FirstCU = NewCU;
// This should be a unique identifier when we want to build .dwp files.
if (useSplitDwarf())
if (useSplitDwarf()) {
// This should be a unique identifier when we want to build .dwp files.
NewCU->addUInt(Die, dwarf::DW_AT_GNU_dwo_id, dwarf::DW_FORM_data8, 0);
if (useSplitDwarf() && !SkeletonCU)
SkeletonCU = constructSkeletonCU(N);
// Now construct the skeleton CU associated.
constructSkeletonCU(N);
}
InfoHolder.addUnit(NewCU);
@ -2477,6 +2477,9 @@ CompileUnit *DwarfDebug::constructSkeletonCU(const MDNode *N) {
if (!CompilationDir.empty())
NewCU->addLocalString(Die, dwarf::DW_AT_comp_dir, CompilationDir);
if (!SkeletonCU)
SkeletonCU = NewCU;
SkeletonHolder.addUnit(NewCU);
return NewCU;