projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in error message.
[oota-llvm.git]
/
utils
/
TableGen
/
TableGen.cpp
diff --git
a/utils/TableGen/TableGen.cpp
b/utils/TableGen/TableGen.cpp
index d6e84609f430aa961d5fd1d35260b3f6a4ce4acc..c6692f805bacef30d16b40199e8092542db3c09b 100644
(file)
--- a/
utils/TableGen/TableGen.cpp
+++ b/
utils/TableGen/TableGen.cpp
@@
-212,6
+212,13
@@
int main(int argc, char **argv) {
std::remove(OutputFilename.c_str()); // Remove the file, it's broken
}
return 1;
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()) {
} catch (...) {
cerr << argv[0] << ": Unknown unexpected exception occurred.\n";
if (Out != cout.stream()) {