diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-02-25 20:50:17 +0000 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-02-25 20:50:17 +0000 |
commit | 0d4ad84aa2f0e7d6613e7223a77fd31a6934f9b0 (patch) | |
tree | 44ec419d9dded1b4d7701b64826d394600678fdd /llvm | |
parent | 85e4e95e6cc6c27033999ca94d3c2e32606afdff (diff) | |
download | bcm5719-llvm-0d4ad84aa2f0e7d6613e7223a77fd31a6934f9b0.tar.gz bcm5719-llvm-0d4ad84aa2f0e7d6613e7223a77fd31a6934f9b0.zip |
TableGen: Remove VarInit::getFieldType
It is redundant with the implementation in TypedInit.
Change-Id: I8ab1fb5c77e4923f7eb3ffae5889f0f8af6093b4
Reviewers: arsenm, craig.topper, tra, MartinO
Subscribers: wdng, llvm-commits
Differential Revision: https://reviews.llvm.org/D43678
llvm-svn: 326061
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/TableGen/Record.h | 2 | ||||
-rw-r--r-- | llvm/lib/TableGen/Record.cpp | 7 |
2 files changed, 0 insertions, 9 deletions
diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h index ba28cb4470b..ba6123b6d95 100644 --- a/llvm/include/llvm/TableGen/Record.h +++ b/llvm/include/llvm/TableGen/Record.h @@ -892,8 +892,6 @@ public: return getNameInit()->getAsUnquotedString(); } - RecTy *getFieldType(StringInit *FieldName) const override; - /// 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 diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 46868414c10..d4879705410 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -1248,13 +1248,6 @@ Init *VarInit::getBit(unsigned Bit) const { return VarBitInit::get(const_cast<VarInit*>(this), Bit); } -RecTy *VarInit::getFieldType(StringInit *FieldName) const { - if (RecordRecTy *RTy = dyn_cast<RecordRecTy>(getType())) - if (const RecordVal *RV = RTy->getRecord()->getValue(FieldName)) - return RV->getType(); - return nullptr; -} - Init *VarInit::resolveReferences(Record &R, const RecordVal *RV) const { if (RecordVal *Val = R.getValue(VarName)) if (RV == Val || (!RV && !isa<UnsetInit>(Val->getValue()))) |