summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAhmed Charles <ace2001ac@gmail.com>2012-02-19 11:37:01 +0000
committerAhmed Charles <ace2001ac@gmail.com>2012-02-19 11:37:01 +0000
commitb0934ab7d811e23bf530371976b8b35f3242169c (patch)
tree11a0f1c5a9a90a6084360819fbc67b6933a11bc0 /tools
parentd7ace3f8d1b7216d7381c408b26259e1201f7c29 (diff)
downloadllvm-b0934ab7d811e23bf530371976b8b35f3242169c.tar.gz
llvm-b0934ab7d811e23bf530371976b8b35f3242169c.tar.bz2
llvm-b0934ab7d811e23bf530371976b8b35f3242169c.tar.xz
Remove dead code. Improve llvm_unreachable text. Simplify some control flow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-ld/llvm-ld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index f1ee4ad56f..ecf0476eb2 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -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