From: Eric Christopher Date: Fri, 30 May 2014 22:47:53 +0000 (+0000) Subject: isSVR4ABI() returned !isDarwin() so just move that to the else X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=96241f26fcbf6bc40a4ce1ea6c3c7ef8af22b7a9;p=oota-llvm.git isSVR4ABI() returned !isDarwin() so just move that to the else block and remove the unreachable code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209927 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 11edeb7d044..2a54625d461 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -53,11 +53,8 @@ extern cl::opt ANDIGlueBug; static TargetLoweringObjectFile *createTLOF(const PPCTargetMachine &TM) { if (TM.getSubtargetImpl()->isDarwin()) return new TargetLoweringObjectFileMachO(); - - if (TM.getSubtargetImpl()->isSVR4ABI()) + else return new PPC64LinuxTargetObjectFile(); - - return new TargetLoweringObjectFileELF(); } PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)