diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-09 14:37:48 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-09 14:37:48 +0000 |
commit | 2d930034f4ff48c6c285bb5960c582a46f0fb9fd (patch) | |
tree | a6708db37d03cf8bd5a700af5c3315261d69fe2c | |
parent | f780f7765173a9567576e99993a1655601a4e674 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8415 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | support/tools/TableGen/FileLexer.l | 2 | ||||
-rw-r--r-- | utils/TableGen/FileLexer.l | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/support/tools/TableGen/FileLexer.l b/support/tools/TableGen/FileLexer.l index 52f46b5239..64ed4c625a 100644 --- a/support/tools/TableGen/FileLexer.l +++ b/support/tools/TableGen/FileLexer.l @@ -82,7 +82,7 @@ void ParseFile(const std::string &Filename, const std::string & IncludeDir) { if (F == 0) { std::cerr << "Could not open input file '" + Filename + "'!\n"; - abort(); + exit (1); } IncludeStack.push_back(IncludeRec(Filename, F)); } else { diff --git a/utils/TableGen/FileLexer.l b/utils/TableGen/FileLexer.l index 52f46b5239..64ed4c625a 100644 --- a/utils/TableGen/FileLexer.l +++ b/utils/TableGen/FileLexer.l @@ -82,7 +82,7 @@ void ParseFile(const std::string &Filename, const std::string & IncludeDir) { if (F == 0) { std::cerr << "Could not open input file '" + Filename + "'!\n"; - abort(); + exit (1); } IncludeStack.push_back(IncludeRec(Filename, F)); } else { |