[llvm] [NFCI] replace getValueType with new getGlobalSize query (PR #177186)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 21 08:11:34 PST 2026
================
@@ -170,6 +171,9 @@ class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {
/// it isn't explicitly set.
LLVM_ABI void replaceInitializer(Constant *InitVal);
+ /// Get the size of this global variable in bytes.
----------------
nikic wrote:
I'd add a comment here that this may be a minimum size if the global is a declaration or a replaceable definition.
https://github.com/llvm/llvm-project/pull/177186
More information about the llvm-commits
mailing list