[PATCH] D43678: TableGen: Remove VarInit::getFieldType
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 25 12:52:47 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL326061: TableGen: Remove VarInit::getFieldType (authored by nha, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D43678
Files:
llvm/trunk/include/llvm/TableGen/Record.h
llvm/trunk/lib/TableGen/Record.cpp
Index: llvm/trunk/lib/TableGen/Record.cpp
===================================================================
--- llvm/trunk/lib/TableGen/Record.cpp
+++ llvm/trunk/lib/TableGen/Record.cpp
@@ -1248,13 +1248,6 @@
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())))
Index: llvm/trunk/include/llvm/TableGen/Record.h
===================================================================
--- llvm/trunk/include/llvm/TableGen/Record.h
+++ llvm/trunk/include/llvm/TableGen/Record.h
@@ -892,8 +892,6 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43678.135846.patch
Type: text/x-patch
Size: 1272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180225/cecc3e04/attachment.bin>
More information about the llvm-commits
mailing list