aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2025-10-01 15:32:07 -0700
committerGitHub <noreply@github.com>2025-10-01 15:32:07 -0700
commit11a4b2d950baa4ddb31505b71a1736fa1f3242b6 (patch)
tree2b6bdc7fe9d97e78db1116f8f3ec629d4e4cb519 /llvm/lib/LTO/LTO.cpp
parentbdd98a01478ddcb99b05d9d2eb20bf4985a21683 (diff)
downloadllvm-11a4b2d950baa4ddb31505b71a1736fa1f3242b6.zip
llvm-11a4b2d950baa4ddb31505b71a1736fa1f3242b6.tar.gz
llvm-11a4b2d950baa4ddb31505b71a1736fa1f3242b6.tar.bz2
Cleanup the LLVM exported symbols namespace (#161240)
There's a pattern throughout LLVM of cl::opts being exported. That in itself is probably a bit unfortunate, but what's especially bad about it is that a lot of those symbols are in the global namespace. Move them into the llvm namespace. While doing this, I noticed some other variables in the global namespace and moved them as well.
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 7b25262..e6544f3 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -75,9 +75,10 @@ static cl::opt<bool>
DumpThinCGSCCs("dump-thin-cg-sccs", cl::init(false), cl::Hidden,
cl::desc("Dump the SCCs in the ThinLTO index's callgraph"));
+namespace llvm {
extern cl::opt<bool> CodeGenDataThinLTOTwoRounds;
-
extern cl::opt<bool> ForceImportAll;
+} // end namespace llvm
namespace llvm {
/// Enable global value internalization in LTO.