mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Fix tablegen's PrintFatalError function to run registered file
cleanups. Also, change code in tablegen which printed a message and then called "exit(1)" to use PrintFatalError, instead. This fixes instances where an empty output file was left behind after a failed tablegen invocation, which would confuse subsequent ninja runs into not attempting to rebuild. Differential Revision: http://reviews.llvm.org/D9608 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -411,9 +411,9 @@ ComplexPattern::ComplexPattern(Record *R) {
|
||||
} else if (PropList[i]->getName() == "SDNPWantParent") {
|
||||
Properties |= 1 << SDNPWantParent;
|
||||
} else {
|
||||
errs() << "Unsupported SD Node property '" << PropList[i]->getName()
|
||||
<< "' on ComplexPattern '" << R->getName() << "'!\n";
|
||||
exit(1);
|
||||
PrintFatalError("Unsupported SD Node property '" +
|
||||
PropList[i]->getName() + "' on ComplexPattern '" +
|
||||
R->getName() + "'!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user