Remove dead code. Improve llvm_unreachable text. Simplify some control flow.
[oota-llvm.git] / tools / llvm-ld / llvm-ld.cpp
index f1ee4ad56fb66ba96921093e9bd54fc0f32f1635..ecf0476eb291e4c604212fa33fc82898e6646c35 100644 (file)
@@ -423,7 +423,7 @@ static void EmitShellScript(char **argv, Module *M) {
     PrintAndExit(ErrMsg, M);
 
   return;
-#endif
+#else
 
   // Output the script to start the program...
   std::string ErrorInfo;
@@ -469,6 +469,7 @@ static void EmitShellScript(char **argv, Module *M) {
   }
   Out2.os() << "    "  << BitcodeOutputFilename << " ${1+\"$@\"}\n";
   Out2.keep();
+#endif
 }
 
 // BuildLinkItems -- This function generates a LinkItemList for the LinkItems