isSVR4ABI() returned !isDarwin() so just move that to the else
block and remove the unreachable code. llvm-svn: 209927
This commit is contained in:
parent
174c662b7c
commit
5435224a53
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue