diff options
-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()))) |