[LLVMdev] Wrong type qualifier for this pointer in case of ARM compiled binary

Karthik Bhat karthikthecool at gmail.com
Mon Oct 1 11:22:06 PDT 2012

Hi All,
Was looking into a simple program -

class Simple
    void fun() {}

int main()
 Simple s;
 return 0;

When compiled using clang++ for ARM-

Expected result when we run -

print Simple::fun  in GDB is
void fun(Simple* const this)

as this should be a const pointer but in case of arm compiled binary we get
void fun(Simple* this).

Works fine when compiled using clang++ for x86.

Seems to be problem with qualifier type but was wondering how is this
target dependent?

Need input from community were can we look to fix this issue for ARM
compiled binary.


More information about the llvm-dev mailing list