summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-12-03 13:15:54 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-12-03 13:15:54 +0000
commitb927161274c02878f7e956dd2a8f7dfeb89dc3c2 (patch)
tree2f9323deda3666155f2e789f5e39debb68c25a6e /llvm/lib/CodeGen/AsmPrinter/DIE.cpp
parent4c719cf6c65f88af719f7e3582afd5ced4c5561f (diff)
downloadbcm5719-llvm-b927161274c02878f7e956dd2a8f7dfeb89dc3c2.tar.gz
bcm5719-llvm-b927161274c02878f7e956dd2a8f7dfeb89dc3c2.zip
Revert r196270, "Generalize debug info / EH emission in AsmPrinter"
It broke CodeGen/R600 tests with +Asserts. llvm-svn: 196272
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index 264d89152cf..8a7b8608b71 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -390,9 +390,7 @@ unsigned DIEEntry::getRefAddrSize(AsmPrinter *AP) {
// specified to be four bytes in the DWARF 32-bit format and eight bytes
// in the DWARF 64-bit format, while DWARF Version 2 specifies that such
// references have the same size as an address on the target system.
- const DwarfDebug *DD = AP->getDwarfDebug();
- assert(DD && "Expected Dwarf Debug info to be available");
- if (DD->getDwarfVersion() == 2)
+ if (AP->getDwarfDebug()->getDwarfVersion() == 2)
return AP->getDataLayout().getPointerSize();
return sizeof(int32_t);
}
OpenPOWER on IntegriCloud