diff options
author | David Greene <greened@obbligato.org> | 2009-06-29 20:05:29 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-06-29 20:05:29 +0000 |
commit | 2c0266202dc10a1ff887a8829950b6548d7feee3 (patch) | |
tree | 7602d2d14c92e214060c3c517e95cb3f3e7640f8 /utils/TableGen/Record.h | |
parent | 67acdf2977595a1d9755bf919d678f80ee65364f (diff) | |
download | external_llvm-2c0266202dc10a1ff887a8829950b6548d7feee3.zip external_llvm-2c0266202dc10a1ff887a8829950b6548d7feee3.tar.gz external_llvm-2c0266202dc10a1ff887a8829950b6548d7feee3.tar.bz2 |
Implement !cast<string>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 5f45ea0..2254dd8 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -834,6 +834,12 @@ public: virtual Init *resolveReferences(Record &R, const RecordVal *RV); + /// getFieldType - This method is used to implement the FieldInit class. + /// Implementors of this method should return the type of the named field if + /// they are of record type. + /// + virtual RecTy *getFieldType(const std::string &FieldName) const; + virtual std::string getAsString() const; }; |