[llvm] f973d77 - [NFC][LLVM] Namespace cleanup in FlattenCFGPass.cpp (#163304)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 14 07:57:14 PDT 2025
Author: Rahul Joshi
Date: 2025-10-14T07:57:09-07:00
New Revision: f973d77f9cf26d736b24f7c83895dc08aa92edd4
URL: https://github.com/llvm/llvm-project/commit/f973d77f9cf26d736b24f7c83895dc08aa92edd4
DIFF: https://github.com/llvm/llvm-project/commit/f973d77f9cf26d736b24f7c83895dc08aa92edd4.diff
LOG: [NFC][LLVM] Namespace cleanup in FlattenCFGPass.cpp (#163304)
Added:
Modified:
llvm/lib/Transforms/Scalar/FlattenCFGPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/FlattenCFGPass.cpp b/llvm/lib/Transforms/Scalar/FlattenCFGPass.cpp
index 213d0f389c2e4..1335665e114dd 100644
--- a/llvm/lib/Transforms/Scalar/FlattenCFGPass.cpp
+++ b/llvm/lib/Transforms/Scalar/FlattenCFGPass.cpp
@@ -39,10 +39,11 @@ struct FlattenCFGLegacyPass : public FunctionPass {
private:
AliasAnalysis *AA;
};
+} // namespace
/// iterativelyFlattenCFG - Call FlattenCFG on all the blocks in the function,
/// iterating until no more changes are made.
-bool iterativelyFlattenCFG(Function &F, AliasAnalysis *AA) {
+static bool iterativelyFlattenCFG(Function &F, AliasAnalysis *AA) {
bool Changed = false;
bool LocalChange = true;
@@ -67,7 +68,6 @@ bool iterativelyFlattenCFG(Function &F, AliasAnalysis *AA) {
}
return Changed;
}
-} // namespace
char FlattenCFGLegacyPass::ID = 0;
More information about the llvm-commits
mailing list