[llvm] 781d0fe - [TableGen] Drop unnecessary const from return types (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 22:14:50 PST 2021


Author: Kazu Hirata
Date: 2021-02-09T22:14:28-08:00
New Revision: 781d0fea72a532a4a422cbb0f9bd06f6f7aabcf4

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

LOG: [TableGen] Drop unnecessary const from return types (NFC)

Added: 
    

Modified: 
    llvm/include/llvm/TableGen/DirectiveEmitter.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/TableGen/DirectiveEmitter.h b/llvm/include/llvm/TableGen/DirectiveEmitter.h
index 8f88802eea9d..b1757249670a 100644
--- a/llvm/include/llvm/TableGen/DirectiveEmitter.h
+++ b/llvm/include/llvm/TableGen/DirectiveEmitter.h
@@ -50,11 +50,11 @@ class DirectiveLanguage {
     return Def->getValueAsBit("enableBitmaskEnumInNamespace");
   }
 
-  const std::vector<Record *> getDirectives() const {
+  std::vector<Record *> getDirectives() const {
     return Records.getAllDerivedDefinitions("Directive");
   }
 
-  const std::vector<Record *> getClauses() const {
+  std::vector<Record *> getClauses() const {
     return Records.getAllDerivedDefinitions("Clause");
   }
 
@@ -64,7 +64,7 @@ class DirectiveLanguage {
   const llvm::Record *Def;
   const llvm::RecordKeeper &Records;
 
-  const std::vector<Record *> getDirectiveLanguages() const {
+  std::vector<Record *> getDirectiveLanguages() const {
     return Records.getAllDerivedDefinitions("DirectiveLanguage");
   }
 };


        


More information about the llvm-commits mailing list