diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-30 04:05:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-30 04:05:07 +0000 |
commit | 9b929aa7495ee0b5d389370baeb332456632b2fe (patch) | |
tree | 17c280b87bbfaba4c971b13ef60d393d821a2dc2 /utils/TableGen/Record.h | |
parent | ee6b5f69bdc639e6e71d6cbcbe17356573b3f335 (diff) | |
download | external_llvm-9b929aa7495ee0b5d389370baeb332456632b2fe.zip external_llvm-9b929aa7495ee0b5d389370baeb332456632b2fe.tar.gz external_llvm-9b929aa7495ee0b5d389370baeb332456632b2fe.tar.bz2 |
Implement resolution of variables to the value of the variable once it gets a value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 72123cb..356d131 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -365,6 +365,13 @@ public: virtual RecTy *getFieldType(const std::string &FieldName) const; virtual Init *getFieldInit(Record &R, const std::string &FieldName) const; + + /// resolveReferences - This method is used by classes that refer to other + /// variables which may not be defined at the time they expression is formed. + /// If a value is set for the variable later, this method will be called on + /// users of the value to allow the value to propagate out. + /// + virtual Init *resolveReferences(Record &R); virtual void print(std::ostream &OS) const { OS << VarName; } }; |