From 5b573a0797c0fd9995628f11f437150f101f4b97 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 7 Mar 2014 22:18:23 +0000 Subject: [PATCH] Revert "Remove unnecessary check for Darwin. rdar://problem/16264854" This breaks linux buildbots. Go figure. llvm-svn: 203300 --- 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 2062b61363a6..81934e172977 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) + if (DwarfVersion < 4 || Triple(Asm->getTargetTriple()).isOSDarwin()) Unit->addLabelAddress(D, dwarf::DW_AT_high_pc, End); else Unit->addLabelDelta(D, dwarf::DW_AT_high_pc, End, Begin);