[llvm-commits] CVS: llvm/utils/TableGen/FileParser.y
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 29 23:32:00 PDT 2003
Changes in directory llvm/utils/TableGen:
FileParser.y updated: 1.7 -> 1.8
---
Log message:
Implement TODO: disallow 'def's with template arguments.
---
Diffs of the changes:
Index: llvm/utils/TableGen/FileParser.y
diff -u llvm/utils/TableGen/FileParser.y:1.7 llvm/utils/TableGen/FileParser.y:1.8
--- llvm/utils/TableGen/FileParser.y:1.7 Tue Jul 29 23:26:44 2003
+++ llvm/utils/TableGen/FileParser.y Tue Jul 29 23:31:17 2003
@@ -432,7 +432,12 @@
};
DefInst : DEF ObjectBody {
- // TODO: If ObjectBody has template arguments, it's an error.
+ if (!$2->getTemplateArgs().empty()) {
+ err() << "Def '" << $2->getName()
+ << "' is not permitted to have template arguments!\n";
+ abort();
+ }
+ // If ObjectBody has template arguments, it's an error.
if (Records.getDef($2->getName())) {
err() << "Def '" << $2->getName() << "' already defined!\n";
abort();
More information about the llvm-commits
mailing list