mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 05:24:22 +00:00
Use getSplitDebugFilename when constructing the skeleton cu and
update testcase accordingly to give the correct name to the cu. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user