summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-02-22 23:50:08 +0000
committerEric Christopher <echristo@gmail.com>2013-02-22 23:50:08 +0000
commitdae389bb98c73d4d5a609d415ba00a417832b350 (patch)
tree876c1839adc50a7980fcd60e01a3b38f4b8a05d5 /llvm/lib/CodeGen
parent0dab36478acb6a6ea063b304e44d66e2231505ef (diff)
downloadbcm5719-llvm-dae389bb98c73d4d5a609d415ba00a417832b350.tar.gz
bcm5719-llvm-dae389bb98c73d4d5a609d415ba00a417832b350.zip
Use getSplitDebugFilename when constructing the skeleton cu and
update testcase accordingly to give the correct name to the cu. llvm-svn: 175934
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 0982dbb8315..87659ef667a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2543,10 +2543,8 @@ CompileUnit *DwarfDebug::constructSkeletonCU(const MDNode *N) {
DIUnit.getLanguage(), Die, Asm,
this, &SkeletonHolder);
- SmallString<16> T(DIUnit.getFilename());
- sys::path::replace_extension(T, ".dwo");
- StringRef FN = sys::path::filename(T);
- NewCU->addLocalString(Die, dwarf::DW_AT_GNU_dwo_name, FN);
+ NewCU->addLocalString(Die, dwarf::DW_AT_GNU_dwo_name,
+ DIUnit.getSplitDebugFilename());
// 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);
OpenPOWER on IntegriCloud