[clang] 5cc9dea - [tblgen] Remove unused private field. NFC.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 15 08:52:22 PDT 2020


Author: Benjamin Kramer
Date: 2020-03-15T16:51:22+01:00
New Revision: 5cc9dea78a3b6c01849b03014dc9e684eeaf5d94

URL: https://github.com/llvm/llvm-project/commit/5cc9dea78a3b6c01849b03014dc9e684eeaf5d94
DIFF: https://github.com/llvm/llvm-project/commit/5cc9dea78a3b6c01849b03014dc9e684eeaf5d94.diff

LOG: [tblgen] Remove unused private field. NFC.

Added: 
    

Modified: 
    clang/utils/TableGen/SveEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/utils/TableGen/SveEmitter.cpp b/clang/utils/TableGen/SveEmitter.cpp
index 3c9f917d0ffb..9eb4c01a9358 100644
--- a/clang/utils/TableGen/SveEmitter.cpp
+++ b/clang/utils/TableGen/SveEmitter.cpp
@@ -43,12 +43,7 @@ using namespace llvm;
 namespace {
 
 class SVEEmitter {
-private:
-  RecordKeeper &Records;
-
 public:
-  SVEEmitter(RecordKeeper &R) : Records(R) {}
-
   // run - Emit arm_sve.h
   void run(raw_ostream &o);
 };
@@ -122,7 +117,7 @@ void SVEEmitter::run(raw_ostream &OS) {
 
 namespace clang {
 void EmitSveHeader(RecordKeeper &Records, raw_ostream &OS) {
-  SVEEmitter(Records).run(OS);
+  SVEEmitter().run(OS);
 }
 
 } // End namespace clang


        


More information about the cfe-commits mailing list