mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-20 11:32:33 +00:00
Make tablegen print out a nice error message for a const char*
exception, like it does for a std::string exception. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c4479a76b1
commit
212e6983eb
@ -212,6 +212,13 @@ int main(int argc, char **argv) {
|
||||
std::remove(OutputFilename.c_str()); // Remove the file, it's broken
|
||||
}
|
||||
return 1;
|
||||
} catch (const char *Error) {
|
||||
cerr << argv[0] << ": " << Error << "\n";
|
||||
if (Out != cout.stream()) {
|
||||
delete Out; // Close the file
|
||||
std::remove(OutputFilename.c_str()); // Remove the file, it's broken
|
||||
}
|
||||
return 1;
|
||||
} catch (...) {
|
||||
cerr << argv[0] << ": Unknown unexpected exception occurred.\n";
|
||||
if (Out != cout.stream()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user