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:
James Y Knight
2015-05-11 22:17:13 +00:00
parent 1d4481df82
commit aeda490976
6 changed files with 29 additions and 28 deletions
+3 -3
View File
@@ -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() + "'!");
}
}