[llvm-branch-commits] [llvm] b9890ae - [TableGen] Make InstrMap::getFilterClass() const. NFCI.

Simon Pilgrim via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 17 06:54:16 PST 2020


Author: Simon Pilgrim
Date: 2020-12-17T14:49:58Z
New Revision: b9890ae1976ba3c986b3c3df480e26277be9b6f0

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

LOG: [TableGen] Make InstrMap::getFilterClass() const. NFCI.

Reported by cppcheck.

I've run clang-format across all the InstrMap accessors as well.

Added: 
    

Modified: 
    llvm/utils/TableGen/CodeGenMapTable.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/CodeGenMapTable.cpp b/llvm/utils/TableGen/CodeGenMapTable.cpp
index 9f9213d44d18..57d86a8fc119 100644
--- a/llvm/utils/TableGen/CodeGenMapTable.cpp
+++ b/llvm/utils/TableGen/CodeGenMapTable.cpp
@@ -144,25 +144,15 @@ class InstrMap {
     }
   }
 
-  std::string getName() const {
-    return Name;
-  }
+  std::string getName() const { return Name; }
 
-  std::string getFilterClass() {
-    return FilterClass;
-  }
+  std::string getFilterClass() const { return FilterClass; }
 
-  ListInit *getRowFields() const {
-    return RowFields;
-  }
+  ListInit *getRowFields() const { return RowFields; }
 
-  ListInit *getColFields() const {
-    return ColFields;
-  }
+  ListInit *getColFields() const { return ColFields; }
 
-  ListInit *getKeyCol() const {
-    return KeyCol;
-  }
+  ListInit *getKeyCol() const { return KeyCol; }
 
   const std::vector<ListInit*> &getValueCols() const {
     return ValueCols;


        


More information about the llvm-branch-commits mailing list