[llvm] [NFC][LLVM] Namespace cleanup in JumpTableToSwitch (PR #163586)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 09:17:32 PDT 2025


https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/163586

None

>From 4f0096e37953c0a253dfe1abf8a5909fd5a3ef8a Mon Sep 17 00:00:00 2001
From: Rahul Joshi <rjoshi at nvidia.com>
Date: Wed, 15 Oct 2025 09:16:24 -0700
Subject: [PATCH] [NFC][LLVM] Namespace cleanup in JumpTableToSwitch

---
 llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp b/llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp
index 3c14036e509ef..6fb81976c9e6e 100644
--- a/llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp
@@ -26,8 +26,6 @@
 
 using namespace llvm;
 
-namespace llvm {
-
 static cl::opt<unsigned>
     JumpTableSizeThreshold("jump-table-to-switch-size-threshold", cl::Hidden,
                            cl::desc("Only split jump tables with size less or "
@@ -43,8 +41,8 @@ static cl::opt<unsigned> FunctionSizeThreshold(
              "or equal than this threshold."),
     cl::init(50));
 
+namespace llvm {
 extern cl::opt<bool> ProfcheckDisableMetadataFixes;
-
 } // end namespace llvm
 
 #define DEBUG_TYPE "jump-table-to-switch"



More information about the llvm-commits mailing list