Author: Jay Foad Date: 2020-12-03T13:36:58Z New Revision: 0f32e81407d33ab8886081db5d8ed2c7407a15e8
URL: https://github.com/llvm/llvm-project/commit/0f32e81407d33ab8886081db5d8ed2c7407a15e8 DIFF: https://github.com/llvm/llvm-project/commit/0f32e81407d33ab8886081db5d8ed2c7407a15e8.diff LOG: [TableGen] Remove unused class RecordValResolver. NFC. Differential Revision: https://reviews.llvm.org/D92477 Added: Modified: llvm/include/llvm/TableGen/Record.h Removed: ################################################################################ diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h index a26367a6fcc6..20b786dc6e42 100644 --- a/llvm/include/llvm/TableGen/Record.h +++ b/llvm/include/llvm/TableGen/Record.h @@ -2032,25 +2032,6 @@ class RecordResolver final : public Resolver { bool keepUnsetBits() const override { return true; } }; -/// Resolve all references to a specific RecordVal. -// -// TODO: This is used for resolving references to template arguments, in a -// rather inefficient way. Change those uses to resolve all template -// arguments simultaneously and get rid of this class. -class RecordValResolver final : public Resolver { - const RecordVal *RV; - -public: - explicit RecordValResolver(Record &R, const RecordVal *RV) - : Resolver(&R), RV(RV) {} - - Init *resolve(Init *VarName) override { - if (VarName == RV->getNameInit()) - return RV->getValue(); - return nullptr; - } -}; - /// Delegate resolving to a sub-resolver, but shadow some variable names. class ShadowResolver final : public Resolver { Resolver &R; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits