Emit the function type of member function pointer types the same as member functions.
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 19 Jan 2013 19:20:56 +0000 (19:20 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 19 Jan 2013 19:20:56 +0000 (19:20 +0000)
commit2c705ca98dee05e4dd9a3360eb2ccca5ff8a8102
tree32f3cd98411a8ebc73ff7dac9e8b543cdd302f7b
parentf23bf14ee482d12b62f9b24008e5b8c501124d1b
Emit the function type of member function pointer types the same as member functions.

Adding the pseudo first parameter to a member function pointer's function type
and mark it as artificial.

Combined with a fix to GDB ( http://sourceware.org/bugzilla/show_bug.cgi?id=14998 )
this fixes gdb.cp/member-ptr.exp with Clang.

llvm-svn: 172911
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-method.cpp