[llvm-commits] CVS: llvm/utils/TableGen/FileLexer.l
John Criswell
criswell at cs.uiuc.edu
Tue Sep 9 09:38:01 PDT 2003
Changes in directory llvm/utils/TableGen:
FileLexer.l updated: 1.14 -> 1.15
---
Log message:
Modified the code so that we exit() with a non-zero value instead of calling
abort() when we can't open the input filename. The abort() function generates
a core dump if possible and is meant for handling errors so grand that even the
program knows that debugging is necessary.
---
Diffs of the changes:
Index: llvm/utils/TableGen/FileLexer.l
diff -u llvm/utils/TableGen/FileLexer.l:1.14 llvm/utils/TableGen/FileLexer.l:1.15
--- llvm/utils/TableGen/FileLexer.l:1.14 Sun Sep 7 00:09:32 2003
+++ llvm/utils/TableGen/FileLexer.l Tue Sep 9 09:37:48 2003
@@ -82,7 +82,7 @@
if (F == 0) {
std::cerr << "Could not open input file '" + Filename + "'!\n";
- abort();
+ exit (1);
}
IncludeStack.push_back(IncludeRec(Filename, F));
} else {
More information about the llvm-commits
mailing list