diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-18 06:53:10 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-18 06:53:10 +0000 |
commit | b2d8c3601859f4bb06afb53aa6f13d65ace394e3 (patch) | |
tree | aa49445eee32b2f5460c15143883a753668b9b98 /tools/gccld/gccld.cpp | |
parent | f8cdb85d0556a3974205935cf43543196989a990 (diff) |
sys::CopyString throws an exception on error which will be caught by gccld
main function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld/gccld.cpp')
-rw-r--r-- | tools/gccld/gccld.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index 097085c10a..91f206b238 100644 --- a/tools/gccld/gccld.cpp +++ b/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 |