mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
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. llvm-svn: 8415
This commit is contained in:
parent
f21ef39f5d
commit
279f4974c1
@ -82,7 +82,7 @@ void ParseFile(const std::string &Filename, const std::string & IncludeDir) {
|
|||||||
|
|
||||||
if (F == 0) {
|
if (F == 0) {
|
||||||
std::cerr << "Could not open input file '" + Filename + "'!\n";
|
std::cerr << "Could not open input file '" + Filename + "'!\n";
|
||||||
abort();
|
exit (1);
|
||||||
}
|
}
|
||||||
IncludeStack.push_back(IncludeRec(Filename, F));
|
IncludeStack.push_back(IncludeRec(Filename, F));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user