[llvm] r210034 - Omit else branch after return.
Eric Christopher
echristo at gmail.com
Mon Jun 2 10:29:07 PDT 2014
Author: echristo
Date: Mon Jun 2 12:29:07 2014
New Revision: 210034
URL: http://llvm.org/viewvc/llvm-project?rev=210034&view=rev
Log:
Omit else branch after return.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=210034&r1=210033&r2=210034&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Mon Jun 2 12:29:07 2014
@@ -52,10 +52,12 @@ cl::desc("disable unaligned load/store g
extern cl::opt<bool> ANDIGlueBug;
static TargetLoweringObjectFile *createTLOF(const Triple &TT) {
+ // If it isn't a Mach-O file then it's going to be a linux ELF
+ // object file.
if (TT.isOSDarwin())
return new TargetLoweringObjectFileMachO();
- else
- return new PPC64LinuxTargetObjectFile();
+
+ return new PPC64LinuxTargetObjectFile();
}
PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
More information about the llvm-commits
mailing list