Skip to content

Commit 0f8a137

Browse files
authored
[NFC][LLVM] Namespace cleanup in Reg2Mem.cpp (#163765)
1 parent fc1d171 commit 0f8a137

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Scalar/Reg2Mem.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ PreservedAnalyses RegToMemPass::run(Function &F, FunctionAnalysisManager &AM) {
107107
return PA;
108108
}
109109

110-
namespace llvm {
111-
112-
void initializeRegToMemWrapperPassPass(PassRegistry &);
110+
namespace {
113111

114112
class RegToMemWrapperPass : public FunctionPass {
115113
public:
@@ -136,7 +134,7 @@ class RegToMemWrapperPass : public FunctionPass {
136134
return N != 0 || Changed;
137135
}
138136
};
139-
} // namespace llvm
137+
} // namespace
140138

141139
INITIALIZE_PASS_BEGIN(RegToMemWrapperPass, "reg2mem", "", true, true)
142140
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass);

0 commit comments

Comments
 (0)