diff options
author | David Greene <greened@obbligato.org> | 2011-10-19 13:02:42 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-10-19 13:02:42 +0000 |
commit | e22b321d2276b634519165b101b02d92c2fcf5c7 (patch) | |
tree | d54a935a96598142d0b8148c175dac984007970b /lib/TableGen/TGParser.h | |
parent | 917924d9912df76ba2e639c8c5b00cdcac91a16e (diff) |
Make Template Arg Names Inits
Allow template arg names to be Inits. This is further work to
implement paste as it allows template names to participate in paste
operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/TGParser.h')
-rw-r--r-- | lib/TableGen/TGParser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/TableGen/TGParser.h b/lib/TableGen/TGParser.h index 266fc2eb41..da52da2f79 100644 --- a/lib/TableGen/TGParser.h +++ b/lib/TableGen/TGParser.h @@ -96,7 +96,7 @@ private: // Parser methods. Record *DefProto, SMLoc DefmPrefixLoc, SMLoc SubClassLoc, - const std::vector<std::string> &TArgs, + const std::vector<Init *> &TArgs, std::vector<Init *> &TemplateVals, bool DeleteArgs); bool ResolveMulticlassDef(MultiClass &MC, @@ -113,7 +113,7 @@ private: // Parser methods. bool ParseBodyItem(Record *CurRec); bool ParseTemplateArgList(Record *CurRec); - std::string ParseDeclaration(Record *CurRec, bool ParsingTemplateArgs); + Init *ParseDeclaration(Record *CurRec, bool ParsingTemplateArgs); SubClassReference ParseSubClassReference(Record *CurRec, bool isDefm); SubMultiClassReference ParseSubMultiClassReference(MultiClass *CurMC); |