llvm::GlobalVariable::getGlobalSize

Get the size of this global variable in bytes. This is only a minimum size if this is a declaration or a replaceable definition.

Synopsis

Declared in <llvm/IR/GlobalVariable.h>

uint64_t
getGlobalSize(DataLayout const& DL) const;

Return Value

The size of this global in bytes.

Parameters

NameDescription
DLThe data layout used to compute the size.