aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/FileLexer.l
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-13 16:37:43 +0000
committerChris Lattner <sabre@nondot.org>2004-02-13 16:37:43 +0000
commitf5761a5e68fa805d58422ca0db5f32f049e77551 (patch)
treebd8b64975fcfdd0b1ffbdda709e50628b660b326 /utils/TableGen/FileLexer.l
parent83fe91797ace489c28ebc02be09c27f6e6168912 (diff)
downloadexternal_llvm-f5761a5e68fa805d58422ca0db5f32f049e77551.zip
external_llvm-f5761a5e68fa805d58422ca0db5f32f049e77551.tar.gz
external_llvm-f5761a5e68fa805d58422ca0db5f32f049e77551.tar.bz2
exit(1) instead of abort()'ing on error
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FileLexer.l')
-rw-r--r--utils/TableGen/FileLexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/FileLexer.l b/utils/TableGen/FileLexer.l
index ec22afd..9b7973c 100644
--- a/utils/TableGen/FileLexer.l
+++ b/utils/TableGen/FileLexer.l
@@ -130,7 +130,7 @@ static void HandleInclude(const char *Buffer) {
yyin = fopen(NextFilename.c_str(), "r");
if (yyin == 0) {
err() << "Could not find include file '" << Filename << "'!\n";
- abort();
+ exit(1);
}
Filename = NextFilename;
}
@@ -214,7 +214,7 @@ ${Identifier} { Filelval.StrVal = new std::string(yytext+1, yytext+yyleng);
<comment>"/*" { ++CommentDepth; }
<comment>"/"+[^*]* /* eat up /'s not followed by *'s */
<comment>"*"+"/" { if (!--CommentDepth) { BEGIN(INITIAL); } }
-<comment><<EOF>> { err() << "Unterminated comment!\n"; abort(); }
+<comment><<EOF>> { err() << "Unterminated comment!\n"; exit(1); }
. { return Filetext[0]; }