Fix tablegen's PrintFatalError function to run registered file
[oota-llvm.git] / utils / TableGen / CodeGenTarget.cpp
index fc8a8a2a787ccd7ae1dc22a6f3d9ab2c87c58185..da54a75713b0aaabe37b4ba9c88ef2f008b7f96b 100644 (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() + "'!");
     }
 }