summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-18 06:53:10 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-18 06:53:10 +0000
commit8b086e3871bcfbc991e39dde8bd9ab44762e4c43 (patch)
tree06898433bc8674194fcd89f68a3ead3548a33f46 /llvm/tools
parent81184bb528f3de5e41c6cc836894feee719a907e (diff)
downloadbcm5719-llvm-8b086e3871bcfbc991e39dde8bd9ab44762e4c43.tar.gz
bcm5719-llvm-8b086e3871bcfbc991e39dde8bd9ab44762e4c43.zip
sys::CopyString throws an exception on error which will be caught by gccld
main function. llvm-svn: 19029
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/gccld/gccld.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp
index 097085c10a9..91f206b238f 100644
--- a/llvm/tools/gccld/gccld.cpp
+++ b/llvm/tools/gccld/gccld.cpp
@@ -124,10 +124,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