[LLVMdev] GlobalValue type
John Criswell
criswell at uiuc.edu
Wed Apr 21 09:15:42 PDT 2010
Orgoton Baberek wrote:
> I tried to get the Type for a global value, but it always returns me a
> PointerType. This is ok, expect that I want to know what type is being pointed
> at. How do I do this?
>
You can utilize the doxygen docs
(http://llvm.org/doxygen/hierarchy.html) to find which methods of
classes give you the information you want.
For example, you can look up the PointerType class and see the methods
it provides. One of its methods returns the type it contains (I think
it's getContainedType() or something like that; I don't recall the name
exactly, but you can use doxygen to find it).
-- John T.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
More information about the llvm-dev
mailing list