[llvm] c0fe37d - [CodeGen] Remove redundant declaration createGreedyRegisterAllocator (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 16 15:43:46 PDT 2022


Author: Kazu Hirata
Date: 2022-07-16T15:43:34-07:00
New Revision: c0fe37de04967efa0c1a1a8bd896c63b5f28bd5a

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

LOG: [CodeGen] Remove redundant declaration createGreedyRegisterAllocator (NFC)

The function is declared in llvm/include/llvm/CodeGen/Passes.h.

Identified with readability-redundant-declaration.

Added: 
    

Modified: 
    llvm/lib/CodeGen/RegAllocGreedy.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index d01989fbb2fa..73462a9c9ac4 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -180,10 +180,6 @@ FunctionPass* llvm::createGreedyRegisterAllocator() {
   return new RAGreedy();
 }
 
-namespace llvm {
-FunctionPass *createGreedyRegisterAllocator(RegClassFilterFunc Ftor);
-}
-
 FunctionPass *llvm::createGreedyRegisterAllocator(RegClassFilterFunc Ftor) {
   return new RAGreedy(Ftor);
 }


        


More information about the llvm-commits mailing list