aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Value.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/IR/Value.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/IR/Value.cpp')
-rw-r--r--llvm/lib/IR/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index e5e062d..a347609 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -36,7 +36,7 @@
using namespace llvm;
-cl::opt<bool> UseDerefAtPointSemantics(
+static cl::opt<bool> UseDerefAtPointSemantics(
"use-dereferenceable-at-point-semantics", cl::Hidden, cl::init(false),
cl::desc("Deref attributes and metadata infer facts at definition only"));