diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-18 06:54:21 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-18 06:54:21 +0000 |
commit | 06c06dbaafbc30e7926b3bcbbe6f8a0887cbfc62 (patch) | |
tree | 507b1c8dc0a473e8854537a10ce9f1f9d4ca2716 /tools/llvm-ld/llvm-ld.cpp | |
parent | b2d8c3601859f4bb06afb53aa6f13d65ace394e3 (diff) |
sys::CopyFile returns void and throws an exception on error which will be
caught by llvm-ld's main function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | tools/llvm-ld/llvm-ld.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index c0a0326365..2a7b535cfa 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/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 |