[llvm] [MC] Fix MCLFI coding style. NFC (PR #228301)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 19:13:49 PDT 2026


================
@@ -24,18 +24,18 @@
 #include "llvm/Support/CommandLine.h"
 #include "llvm/TargetParser/Triple.h"
 
-static const char NoteNamespace[] = "LFI";
+using namespace llvm;
 
-static constexpr unsigned X86BundleSize = 32;
+const char NoteNamespace[] = "LFI";
----------------
MaskRay wrote:

namespace-scope const variables are already internal linkage, no need for `static `

https://github.com/llvm/llvm-project/pull/228301


More information about the llvm-commits mailing list