Omit else branch after return.
authorEric Christopher <echristo@gmail.com>
Mon, 2 Jun 2014 17:29:07 +0000 (17:29 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 2 Jun 2014 17:29:07 +0000 (17:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 29529156022e4c6215a4a5a681264823ec870b04..f3b0154103a3c4e7161522326625c39c2be941ff 100644 (file)
@@ -52,10 +52,12 @@ cl::desc("disable unaligned load/store generation on PPC"), cl::Hidden);
 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)