summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-03-07 23:07:21 +0000
committerAdrian Prantl <aprantl@apple.com>2014-03-07 23:07:21 +0000
commit887e70786af4a584f714d512074bf6b0989d9d28 (patch)
treee0a07a39506906b18296da2f50d79aedf24203d4 /llvm/lib/CodeGen
parentc79dd2f80ac78b262944a55a6e8eaee3c62ea7a5 (diff)
downloadbcm5719-llvm-887e70786af4a584f714d512074bf6b0989d9d28.tar.gz
bcm5719-llvm-887e70786af4a584f714d512074bf6b0989d9d28.zip
Remove unnecessary test for Darwin and update testcase to be a little less
horrible/fragile. rdar://problem/16264854 llvm-svn: 203309
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index dab3c194c1e..17bb6857cdc 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2845,7 +2845,7 @@ void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU,
void DwarfDebug::attachLowHighPC(DwarfCompileUnit *Unit, DIE *D,
MCSymbol *Begin, MCSymbol *End) {
Unit->addLabelAddress(D, dwarf::DW_AT_low_pc, Begin);
- if (DwarfVersion < 4 || Triple(Asm->getTargetTriple()).isOSDarwin())
+ if (DwarfVersion < 4)
Unit->addLabelAddress(D, dwarf::DW_AT_high_pc, End);
else
Unit->addLabelDelta(D, dwarf::DW_AT_high_pc, End, Begin);
OpenPOWER on IntegriCloud