diff options
author | David Greene <greened@obbligato.org> | 2011-10-19 13:02:36 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-10-19 13:02:36 +0000 |
commit | 30c2225b3c4a89b527ee38542ab8990ca0a682f1 (patch) | |
tree | 849763b785e2b6c4fbf40071a501e14a9fcf89b1 /include | |
parent | ee6dca17252de152720655282fb4b74b76fb2fe9 (diff) | |
download | external_llvm-30c2225b3c4a89b527ee38542ab8990ca0a682f1.zip external_llvm-30c2225b3c4a89b527ee38542ab8990ca0a682f1.tar.gz external_llvm-30c2225b3c4a89b527ee38542ab8990ca0a682f1.tar.bz2 |
Add Utility to Scope Names
Add a couple of utility functions to take a variable name and qualify
it with the namespace of the enclosing class and/or multiclass. This
is inpreparation for making template arg names first-class Inits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/TableGen/Record.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index 47d4f7f..905126b 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -1674,6 +1674,16 @@ struct LessRecordFieldName { raw_ostream &operator<<(raw_ostream &OS, const RecordKeeper &RK); +/// QualifyName - Return an Init with a qualifier prefix referring +/// to CurRec's name. +Init *QualifyName(Record &CurRec, MultiClass *CurMultiClass, + Init *Name, const std::string &Scoper); + +/// QualifyName - Return an Init with a qualifier prefix referring +/// to CurRec's name. +Init *QualifyName(Record &CurRec, MultiClass *CurMultiClass, + const std::string &Name, const std::string &Scoper); + } // End llvm namespace #endif |