isSVR4ABI() returned !isDarwin() so just move that to the else
authorEric Christopher <echristo@gmail.com>
Fri, 30 May 2014 22:47:53 +0000 (22:47 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 30 May 2014 22:47:53 +0000 (22:47 +0000)
block and remove the unreachable code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209927 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 11edeb7d044e713c9f5d7545999b0ba95a31580b..2a54625d461b0b558b1c6b44f03871f603818ab6 100644 (file)
@@ -53,11 +53,8 @@ extern cl::opt<bool> 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)