aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-05-07 11:15:43 -0700
committerFangrui Song <i@maskray.me>2021-05-07 11:15:43 -0700
commitd8aba75a768033c326613d85e8789703cb4565d2 (patch)
tree4e3e7cc1d20bbfac1a8164d811de8f52c523ba3a /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent8002c5d65fdc979fc2f4fa33509f6c32caca3dce (diff)
downloadllvm-d8aba75a768033c326613d85e8789703cb4565d2.zip
llvm-d8aba75a768033c326613d85e8789703cb4565d2.tar.gz
llvm-d8aba75a768033c326613d85e8789703cb4565d2.tar.bz2
Internalize some cl::opt global variables or move them under namespace llvm
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 2e75848..f61142d 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -193,6 +193,7 @@ static cl::opt<unsigned> TriangleChainCount(
cl::init(2),
cl::Hidden);
+namespace llvm {
extern cl::opt<unsigned> StaticLikelyProb;
extern cl::opt<unsigned> ProfileLikelyProb;
@@ -204,6 +205,7 @@ extern cl::opt<GVDAGType> ViewBlockLayoutWithBFI;
// Command line option to specify the name of the function for CFG dump
// Defined in Analysis/BlockFrequencyInfo.cpp: -view-bfi-func-name=
extern cl::opt<std::string> ViewBlockFreqFuncName;
+} // namespace llvm
namespace {