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
if (F == 0) {
std::cerr << "Could not open input file '" + Filename + "'!\n";
- abort();
+ exit (1);
}
IncludeStack.push_back(IncludeRec(Filename, F));
} else {
if (F == 0) {
std::cerr << "Could not open input file '" + Filename + "'!\n";
- abort();
+ exit (1);
}
IncludeStack.push_back(IncludeRec(Filename, F));
} else {