[llvm-commits] CVS: llvm/tools/lto/lto.cpp
Reid Spencer
reid at x10sys.com
Tue Aug 22 17:39:56 PDT 2006
Changes in directory llvm/tools/lto:
lto.cpp updated: 1.6 -> 1.7
---
Log message:
For PR797: http://llvm.org/PR797 :
Remove exceptions from the Path::create*OnDisk methods. Update their users
to handle error messages via arguments and result codes.
---
Diffs of the changes: (+5 -1)
lto.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/tools/lto/lto.cpp
diff -u llvm/tools/lto/lto.cpp:1.6 llvm/tools/lto/lto.cpp:1.7
--- llvm/tools/lto/lto.cpp:1.6 Sun Aug 20 21:04:43 2006
+++ llvm/tools/lto/lto.cpp Tue Aug 22 19:39:35 2006
@@ -295,7 +295,11 @@
}
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);
More information about the llvm-commits
mailing list