diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-07-30 21:47:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-07-30 21:47:42 +0000 |
| commit | f05760de76b4ec26474da18c97770ca369972cfd (patch) | |
| tree | bdf81617ca2012a5c373ace6516fa3606a35f157 /utils/TableGen/FileParser.y | |
| parent | 3b624625e7928b1d7b9c118d19f19ab678b5c698 (diff) | |
Initial support for the 'code' type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FileParser.y')
| -rw-r--r-- | utils/TableGen/FileParser.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/FileParser.y b/utils/TableGen/FileParser.y index 431fcfcc62..e906a5e4e3 100644 --- a/utils/TableGen/FileParser.y +++ b/utils/TableGen/FileParser.y @@ -153,7 +153,7 @@ static void addSubClass(Record *SC, const std::vector<Init*> &TemplateArgs) { std::vector<SubClassRefTy> *SubClassList; }; -%token INT BIT STRING BITS LIST CLASS DEF FIELD SET IN +%token INT BIT STRING BITS LIST CODE CLASS DEF FIELD SET IN %token <IntVal> INTVAL %token <StrVal> ID STRVAL @@ -202,6 +202,8 @@ Type : STRING { // string type $$ = new IntRecTy(); } | LIST '<' ClassID '>' { // list<x> type $$ = new ListRecTy($3); + } | CODE { // code type + $$ = new CodeRecTy(); } | ClassID { // Record Type $$ = new RecordRecTy($1); }; |
