From 319ef2edcccda8a5917e2db58407e29cd7952120 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 7 Mar 2014 22:04:42 +0000 Subject: [PATCH] Remove unnecessary check for Darwin. rdar://problem/16264854 llvm-svn: 203297 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 81934e172977..2062b61363a6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2837,7 +2837,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);