aboutsummaryrefslogtreecommitdiff
path: root/support/tools/TableGen/FileParser.y
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-04 04:50:57 +0000
committerChris Lattner <sabre@nondot.org>2003-08-04 04:50:57 +0000
commit40f71134b9fef0ca06c516f033cc9403394a913c (patch)
tree1fb65d1311706e34922d3f7e676129634ad3097b /support/tools/TableGen/FileParser.y
parent5e2cb8b991cac2bbe38e275947f095dc8682dfc8 (diff)
Add initial support for a new 'dag' type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support/tools/TableGen/FileParser.y')
-rw-r--r--support/tools/TableGen/FileParser.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/support/tools/TableGen/FileParser.y b/support/tools/TableGen/FileParser.y
index 4025d4e231..0c5b240d30 100644
--- a/support/tools/TableGen/FileParser.y
+++ b/support/tools/TableGen/FileParser.y
@@ -168,7 +168,7 @@ static void addSubClass(Record *SC, const std::vector<Init*> &TemplateArgs) {
std::vector<SubClassRefTy> *SubClassList;
};
-%token INT BIT STRING BITS LIST CODE CLASS DEF FIELD SET IN
+%token INT BIT STRING BITS LIST CODE DAG CLASS DEF FIELD SET IN
%token <IntVal> INTVAL
%token <StrVal> ID STRVAL CODEFRAGMENT
@@ -209,6 +209,8 @@ Type : STRING { // string type
$$ = new ListRecTy($3);
} | CODE { // code type
$$ = new CodeRecTy();
+ } | DAG { // dag type
+ $$ = new DagRecTy();
} | ClassID { // Record Type
$$ = new RecordRecTy($1);
};