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.

llvm-svn: 209927

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

index 11edeb7..2a54625 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)