mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
For PR797:
Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -295,7 +295,11 @@ LinkTimeOptimizer::optimizeModules(const std::string &OutputFilename,
|
||||
}
|
||||
|
||||
sys::Path tmpAsmFilePath("/tmp/");
|
||||
tmpAsmFilePath.createTemporaryFileOnDisk();
|
||||
std::string ErrMsg;
|
||||
if (tmpAsmFilePath.createTemporaryFileOnDisk(&ErrMsg)) {
|
||||
std::cerr << "lto: " << ErrMsg << "\n";
|
||||
return;
|
||||
}
|
||||
sys::RemoveFileOnSignal(tmpAsmFilePath);
|
||||
|
||||
std::ofstream asmFile(tmpAsmFilePath.c_str(), io_mode);
|
||||
|
Reference in New Issue
Block a user