summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld/llvm-ld.cpp
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
commit636a3d618ca8217e3fc77b0e47596a9114864aed (patch)
treecc77af62ca8eec4a0419cb4bb871a5889353a24a /llvm/tools/llvm-ld/llvm-ld.cpp
parenta4704ab080703a2f761b6319eb1f73ba02d3be5f (diff)
downloadbcm5719-llvm-636a3d618ca8217e3fc77b0e47596a9114864aed.tar.gz
bcm5719-llvm-636a3d618ca8217e3fc77b0e47596a9114864aed.zip
Remove dead code. Improve llvm_unreachable text. Simplify some control flow.
llvm-svn: 150918
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r--llvm/tools/llvm-ld/llvm-ld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp
index f1ee4ad56fb..ecf0476eb29 100644
--- a/llvm/tools/llvm-ld/llvm-ld.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud