[LLVMdev] Is any way to get deference pointer value's raw type(i.e. pointer type)
bluechristlove at 163.com
Mon Mar 23 06:38:27 PDT 2015
Maybe the title is somehow confused. but let me show you a example.
void foo(int val)
// do something
int i = 27;
int* pi = &i;
Here, if we compile it using clang, the type of *pi will be i32, but we know pi is pointer type.
my question is we use Function::getgetFunctionParamType method, the result will be i32. but how do I use some wayst to get ' pi ' type, not ' *pi ' type? This problem has confused me some days.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev