[llvm] 9caac56 - [TableGen] Delete unused Record::resolveReferencesTo() after D44478. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 26 01:23:12 PDT 2020


Author: Fangrui Song
Date: 2020-04-26T01:21:41-07:00
New Revision: 9caac56a65cfd44a81e873dc7d224c7a996144dd

URL: https://github.com/llvm/llvm-project/commit/9caac56a65cfd44a81e873dc7d224c7a996144dd
DIFF: https://github.com/llvm/llvm-project/commit/9caac56a65cfd44a81e873dc7d224c7a996144dd.diff

LOG: [TableGen] Delete unused Record::resolveReferencesTo() after D44478. NFC

Added: 
    

Modified: 
    llvm/include/llvm/TableGen/Record.h
    llvm/lib/TableGen/Record.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h
index 48aeaa14ca48..a082fe5d74a1 100644
--- a/llvm/include/llvm/TableGen/Record.h
+++ b/llvm/include/llvm/TableGen/Record.h
@@ -1604,11 +1604,6 @@ class Record {
   /// recursion / infinite loops.
   void resolveReferences(Resolver &R, const RecordVal *SkipVal = nullptr);
 
-  /// If anything in this record refers to RV, replace the
-  /// reference to RV with the RHS of RV.  If RV is null, we resolve all
-  /// possible references.
-  void resolveReferencesTo(const RecordVal *RV);
-
   RecordKeeper &getRecords() const {
     return TrackedRecords;
   }

diff  --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index ca8cd15294d2..6f774e960b43 100644
--- a/llvm/lib/TableGen/Record.cpp
+++ b/llvm/lib/TableGen/Record.cpp
@@ -2156,11 +2156,6 @@ void Record::resolveReferences() {
   resolveReferences(R);
 }
 
-void Record::resolveReferencesTo(const RecordVal *RV) {
-  RecordValResolver R(*this, RV);
-  resolveReferences(R, RV);
-}
-
 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
 LLVM_DUMP_METHOD void Record::dump() const { errs() << *this; }
 #endif


        


More information about the llvm-commits mailing list