Remove unnecessary check for Darwin. rdar://problem/16264854

llvm-svn: 203297
This commit is contained in:
Adrian Prantl 2014-03-07 22:04:42 +00:00
parent 555e79a304
commit 319ef2edcc
1 changed files with 1 additions and 1 deletions

View File

@ -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);