summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2018-09-25 17:29:30 +0000
committerJustin Bogner <mail@justinbogner.com>2018-09-25 17:29:30 +0000
commitef2ae740c6d82e3d310064a17e884dec024c55a8 (patch)
tree76068a4e7ff096a322bb4d2a2217259e69a8e047 /llvm/lib/CodeGen/AsmPrinter
parentae343483544e249d03e9be4ac17812dc7f85a55e (diff)
downloadbcm5719-llvm-ef2ae740c6d82e3d310064a17e884dec024c55a8.tar.gz
bcm5719-llvm-ef2ae740c6d82e3d310064a17e884dec024c55a8.zip
Revert "[DebugInfo] Do not generate address info for removed debug labels."
The added test is failing on macOS: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/53550/ This reverts r342943. llvm-svn: 342993
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 496c80a08e3..ee6821907b6 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -865,9 +865,10 @@ void DwarfCompileUnit::finishEntityDefinition(const DbgEntity *Entity) {
llvm_unreachable("DbgEntity must be DbgVariable or DbgLabel.");
}
- if (Label)
- if (const auto *Sym = Label->getSymbol())
- addLabelAddress(*Die, dwarf::DW_AT_low_pc, Sym);
+ if (Label) {
+ const MCSymbol *Sym = Label->getSymbol();
+ addLabelAddress(*Die, dwarf::DW_AT_low_pc, Sym);
+ }
}
DbgEntity *DwarfCompileUnit::getExistingAbstractEntity(const DINode *Node) {
OpenPOWER on IntegriCloud