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 | 8b086e3871bcfbc991e39dde8bd9ab44762e4c43 (patch) | |
| tree | 06898433bc8674194fcd89f68a3ead3548a33f46 /llvm/tools | |
| parent | 81184bb528f3de5e41c6cc836894feee719a907e (diff) | |
| download | bcm5719-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.cpp | 5 |
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 |

