summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-05-30 22:47:53 +0000
committerEric Christopher <echristo@gmail.com>2014-05-30 22:47:53 +0000
commit5435224a5389ce1173a51a960de6b8e2e2957174 (patch)
tree6a84afbffa51f505a2961af3ddc93ba7d5849258 /llvm/lib/Target/PowerPC
parent174c662b7cbefc777dfd65029fc1c2cce25461cf (diff)
downloadbcm5719-llvm-5435224a5389ce1173a51a960de6b8e2e2957174.tar.gz
bcm5719-llvm-5435224a5389ce1173a51a960de6b8e2e2957174.zip
isSVR4ABI() returned !isDarwin() so just move that to the else
block and remove the unreachable code. llvm-svn: 209927
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 11edeb7d044..2a54625d461 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -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)
OpenPOWER on IntegriCloud