[LLVMdev] A newbie question about the class hierarchy

Nai Xia nelson.xia at gmail.com
Fri Apr 14 03:19:01 PDT 2006


Hi,
I apologize if it is a rather stupid question, I am a newbie to LLVM.
I notice a inconsistency between the current llvm1.6 doc and its source code.
The doc states that the superclasses of GlobalVariable are GlobalValue, User, Value,
however in the source code GlobalVariable has Constant as its super.
I am just curious that why "variable" should be a subclass of "constant"? 

Regards,
Nai




More information about the llvm-dev mailing list