summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-09-03 21:00:49 +0000
committerDavid Greene <greened@obbligato.org>2010-09-03 21:00:49 +0000
commit9703843dfa5640ddfc4362d7aa20b03fba485ece (patch)
tree3c8f21c0b9e558fa2fbf3193b9db5063935d1f8a /utils/TableGen/Record.h
parent190d0a54c18e0f8198b5b802818f7194b91262b4 (diff)
downloadllvm-9703843dfa5640ddfc4362d7aa20b03fba485ece.tar.gz
llvm-9703843dfa5640ddfc4362d7aa20b03fba485ece.tar.bz2
llvm-9703843dfa5640ddfc4362d7aa20b03fba485ece.tar.xz
Generalize getFieldType to work on all TypedInits. Add a couple of testcases from
Amaury Pouly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index 8f9fd950bb..d6f37eec74 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -535,6 +535,12 @@ public:
virtual Init *convertInitializerBitRange(const std::vector<unsigned> &Bits);
virtual Init *convertInitListSlice(const std::vector<unsigned> &Elements);
+ /// 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;
+
/// resolveBitReference - This method is used to implement
/// VarBitInit::resolveReferences. If the bit is able to be resolved, we
/// simply return the resolved value, otherwise we return null.
@@ -835,12 +841,6 @@ 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;
};