summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-02-25 20:50:17 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-02-25 20:50:17 +0000
commit0d4ad84aa2f0e7d6613e7223a77fd31a6934f9b0 (patch)
tree44ec419d9dded1b4d7701b64826d394600678fdd /llvm/lib
parent85e4e95e6cc6c27033999ca94d3c2e32606afdff (diff)
downloadbcm5719-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/lib')
-rw-r--r--llvm/lib/TableGen/Record.cpp7
1 files changed, 0 insertions, 7 deletions
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())))
OpenPOWER on IntegriCloud