isSVR4ABI() returned !isDarwin() so just move that to the else

block and remove the unreachable code.

llvm-svn: 209927
This commit is contained in:
Eric Christopher 2014-05-30 22:47:53 +00:00
parent 174c662b7c
commit 5435224a53
1 changed files with 1 additions and 4 deletions

View File

@ -53,11 +53,8 @@ extern cl::opt<bool> ANDIGlueBug;
static TargetLoweringObjectFile *createTLOF(const PPCTargetMachine &TM) { static TargetLoweringObjectFile *createTLOF(const PPCTargetMachine &TM) {
if (TM.getSubtargetImpl()->isDarwin()) if (TM.getSubtargetImpl()->isDarwin())
return new TargetLoweringObjectFileMachO(); return new TargetLoweringObjectFileMachO();
else
if (TM.getSubtargetImpl()->isSVR4ABI())
return new PPC64LinuxTargetObjectFile(); return new PPC64LinuxTargetObjectFile();
return new TargetLoweringObjectFileELF();
} }
PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)