summaryrefslogtreecommitdiff
path: root/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
commit96241f26fcbf6bc40a4ce1ea6c3c7ef8af22b7a9 (patch)
tree688f8689ab10ff5eef91b90a268d605554cc308e /lib/Target/PowerPC
parent46949d58b99278dc0f79dcd1995c9e72f8074467 (diff)
downloadllvm-96241f26fcbf6bc40a4ce1ea6c3c7ef8af22b7a9.tar.gz
llvm-96241f26fcbf6bc40a4ce1ea6c3c7ef8af22b7a9.tar.bz2
llvm-96241f26fcbf6bc40a4ce1ea6c3c7ef8af22b7a9.tar.xz
isSVR4ABI() returned !isDarwin() so just move that to the else
block and remove the unreachable code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index 11edeb7d04..2a54625d46 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/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)