summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-18 06:54:21 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-18 06:54:21 +0000
commit5ababc6f33a722e529565d411c3ade6334c20202 (patch)
tree9c5ba4ee9a4f007bbdf4862cee05eaed97a17bfb /llvm/tools
parent8b086e3871bcfbc991e39dde8bd9ab44762e4c43 (diff)
downloadbcm5719-llvm-5ababc6f33a722e529565d411c3ade6334c20202.tar.gz
bcm5719-llvm-5ababc6f33a722e529565d411c3ade6334c20202.zip
sys::CopyFile returns void and throws an exception on error which will be
caught by llvm-ld's main function. llvm-svn: 19030
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-ld/llvm-ld.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp
index c0a03263657..2a7b535cfa4 100644
--- a/llvm/tools/llvm-ld/llvm-ld.cpp
+++ b/llvm/tools/llvm-ld/llvm-ld.cpp
@@ -313,10 +313,7 @@ static void EmitShellScript(char **argv) {
std::cerr << "Could not find llvm-stub.exe executable!\n";
exit(1);
}
- if (sys::CopyFile(OutputFilename, llvmstub)) {
- std::cerr << "Could not copy the llvm-stub.exe executable!\n";
- exit(1);
- }
+ sys::CopyFile(OutputFilename, llvmstub);
return;
#endif
OpenPOWER on IntegriCloud