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
This commit is contained in:
Chris Lattner
2004-02-13 16:37:43 +00:00
parent 83fe91797a
commit f5761a5e68
3 changed files with 27 additions and 27 deletions

View File

@@ -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]; }