[LLVMdev] AddressSpace of a GlobalAddress

Sanjiv Gupta sanjiv.gupta at microchip.com
Tue Apr 28 07:57:01 PDT 2009


Every GlobalAddress has a GlobalValue, Every GlobalValue is a 
PointerType, Every PointerType has an AddressSpace. So is it ok to add a 
method getAddressSpace in GlobalAddressSDNode class itself?

Currently we have to do GSDN->getGlobal()->getType()->getAddressSpace().

- Sanjiv



More information about the llvm-dev mailing list