mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
For PR797:
Final removal of exceptions from lib/System and adjustment of users to accommodate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -776,7 +776,12 @@ static bool TestCodeGenerator(BugDriver &BD, Module *Test, Module *Safe) {
|
||||
CleanupAndPrepareModules(BD, Test, Safe);
|
||||
|
||||
sys::Path TestModuleBC("bugpoint.test.bc");
|
||||
TestModuleBC.makeUnique();
|
||||
std::string ErrMsg;
|
||||
if (TestModuleBC.makeUnique(true, &ErrMsg)) {
|
||||
std::cerr << BD.getToolName() << "Error making unique filename: "
|
||||
<< ErrMsg << "\n";
|
||||
exit(1);
|
||||
}
|
||||
if (BD.writeProgramToFile(TestModuleBC.toString(), Test)) {
|
||||
std::cerr << "Error writing bytecode to `" << TestModuleBC << "'\nExiting.";
|
||||
exit(1);
|
||||
@@ -785,7 +790,11 @@ static bool TestCodeGenerator(BugDriver &BD, Module *Test, Module *Safe) {
|
||||
|
||||
// Make the shared library
|
||||
sys::Path SafeModuleBC("bugpoint.safe.bc");
|
||||
SafeModuleBC.makeUnique();
|
||||
if (SafeModuleBC.makeUnique(true, &ErrMsg)) {
|
||||
std::cerr << BD.getToolName() << "Error making unique filename: "
|
||||
<< ErrMsg << "\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (BD.writeProgramToFile(SafeModuleBC.toString(), Safe)) {
|
||||
std::cerr << "Error writing bytecode to `" << SafeModuleBC << "'\nExiting.";
|
||||
@@ -836,7 +845,12 @@ bool BugDriver::debugCodeGenerator() {
|
||||
CleanupAndPrepareModules(*this, ToCodeGen, ToNotCodeGen);
|
||||
|
||||
sys::Path TestModuleBC("bugpoint.test.bc");
|
||||
TestModuleBC.makeUnique();
|
||||
std::string ErrMsg;
|
||||
if (TestModuleBC.makeUnique(true, &ErrMsg)) {
|
||||
std::cerr << getToolName() << "Error making unique filename: "
|
||||
<< ErrMsg << "\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (writeProgramToFile(TestModuleBC.toString(), ToCodeGen)) {
|
||||
std::cerr << "Error writing bytecode to `" << TestModuleBC << "'\nExiting.";
|
||||
@@ -846,7 +860,11 @@ bool BugDriver::debugCodeGenerator() {
|
||||
|
||||
// Make the shared library
|
||||
sys::Path SafeModuleBC("bugpoint.safe.bc");
|
||||
SafeModuleBC.makeUnique();
|
||||
if (SafeModuleBC.makeUnique(true, &ErrMsg)) {
|
||||
std::cerr << getToolName() << "Error making unique filename: "
|
||||
<< ErrMsg << "\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (writeProgramToFile(SafeModuleBC.toString(), ToNotCodeGen)) {
|
||||
std::cerr << "Error writing bytecode to `" << SafeModuleBC << "'\nExiting.";
|
||||
|
||||
Reference in New Issue
Block a user