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
This commit is contained in:
Reid Spencer 2004-12-18 06:53:10 +00:00
parent f8cdb85d05
commit b2d8c36018

View File

@ -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