diff options
author | Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com> | 2019-12-11 01:19:43 +0530 |
---|---|---|
committer | Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com> | 2019-12-11 01:20:40 +0530 |
commit | d82b6ba21b32ddf00af886b9160feef88211773e (patch) | |
tree | 0ea1b71dbc743891f3800b8806b12f30883a6813 /llvm/lib/CodeGen/AsmPrinter | |
parent | bbaaeb409904e375d8c44223b37a71502192c17c (diff) | |
download | bcm5719-llvm-d82b6ba21b32ddf00af886b9160feef88211773e.tar.gz bcm5719-llvm-d82b6ba21b32ddf00af886b9160feef88211773e.zip |
Revert "[DWARF5] Start emitting DW_AT_dwo_name when -gdwarf-5 is specified."
This reverts commit 6ef01588f4d75ef43da4ed2a37ba7a8b8daab259.
Missing Differetial revision.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f6039cc5bc0..89a0e350f8f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -856,13 +856,10 @@ void DwarfDebug::finishUnitAttributes(const DICompileUnit *DIUnit, // This CU is either a clang module DWO or a skeleton CU. NewCU.addUInt(Die, dwarf::DW_AT_GNU_dwo_id, dwarf::DW_FORM_data8, DIUnit->getDWOId()); - if (!DIUnit->getSplitDebugFilename().empty()) { + if (!DIUnit->getSplitDebugFilename().empty()) // This is a prefabricated skeleton CU. - dwarf::Attribute attrDWOName = getDwarfVersion() >= 5 - ? dwarf::DW_AT_dwo_name - : dwarf::DW_AT_GNU_dwo_name; - NewCU.addString(Die, attrDWOName, DIUnit->getSplitDebugFilename()); - } + NewCU.addString(Die, dwarf::DW_AT_GNU_dwo_name, + DIUnit->getSplitDebugFilename()); } } // Create new DwarfCompileUnit for the given metadata node with tag @@ -1104,13 +1101,10 @@ void DwarfDebug::finalizeModuleInfo() { bool HasSplitUnit = SkCU && !TheCU.getUnitDie().children().empty(); if (HasSplitUnit) { - dwarf::Attribute attrDWOName = getDwarfVersion() >= 5 - ? dwarf::DW_AT_dwo_name - : dwarf::DW_AT_GNU_dwo_name; finishUnitAttributes(TheCU.getCUNode(), TheCU); - TheCU.addString(TheCU.getUnitDie(), attrDWOName, + TheCU.addString(TheCU.getUnitDie(), dwarf::DW_AT_GNU_dwo_name, Asm->TM.Options.MCOptions.SplitDwarfFile); - SkCU->addString(SkCU->getUnitDie(), attrDWOName, + SkCU->addString(SkCU->getUnitDie(), dwarf::DW_AT_GNU_dwo_name, Asm->TM.Options.MCOptions.SplitDwarfFile); // Emit a unique identifier for this CU. uint64_t ID = |