Remove unnecessary test for Darwin and update testcase to be a little less
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index dab3c194c1e43596372994468f1b5b2c21f993c6..17bb6857cdc926915419a541e0e48f099e8b38fd 100644 (file)
@@ -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);