[llvm] [NFC][LLVM] Fix some `llvm` namespace usage in Bitcode writer (PR #141709)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 07:56:47 PDT 2025


================
@@ -117,10 +118,6 @@ static cl::opt<bool>
 #endif
                                 cl::desc(""));
 
-namespace llvm {
-extern FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold;
----------------
jurahul wrote:

Unfortunately, that does not work.  Note in the case below, llvm:: is for the type. Here we want to declare an extern variable in the llvm namespace, and `extern type llvm::VarName` does not work (I did try that first).

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


More information about the llvm-commits mailing list