[LLVMdev] get size of a GlobalVariable

Eduardo erocha.ssa at gmail.com
Sun Nov 18 08:16:15 PST 2012


Hi,

How can I get the size of a global variable if I have a reference to
the corresponding llvm::GlobalVariable object? What if this variable
is an array or struct, how can I get the size of the whole variable?

Thanks in advance,
Eduardo



More information about the llvm-dev mailing list