[PATCH] D92477: [TableGen] Remove unused class RecordValResolver. NFC.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 04:34:15 PST 2020


foad created this revision.
foad added reviewers: nhaehnle, MaskRay.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
foad requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92477

Files:
  llvm/include/llvm/TableGen/Record.h


Index: llvm/include/llvm/TableGen/Record.h
===================================================================
--- llvm/include/llvm/TableGen/Record.h
+++ llvm/include/llvm/TableGen/Record.h
@@ -2032,25 +2032,6 @@
   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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92477.308935.patch
Type: text/x-patch
Size: 1013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201202/7eb20728/attachment.bin>


More information about the llvm-commits mailing list