Skip to content

Commit c0fe37d

Browse files
[CodeGen] Remove redundant declaration createGreedyRegisterAllocator (NFC)
The function is declared in llvm/include/llvm/CodeGen/Passes.h. Identified with readability-redundant-declaration.
1 parent 4d9d07c commit c0fe37d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/CodeGen/RegAllocGreedy.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,6 @@ FunctionPass* llvm::createGreedyRegisterAllocator() {
180180
return new RAGreedy();
181181
}
182182

183-
namespace llvm {
184-
FunctionPass *createGreedyRegisterAllocator(RegClassFilterFunc Ftor);
185-
}
186-
187183
FunctionPass *llvm::createGreedyRegisterAllocator(RegClassFilterFunc Ftor) {
188184
return new RAGreedy(Ftor);
189185
}

0 commit comments

Comments
 (0)