[cfe-commits] r108220 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Tue Jul 13 09:24:21 PDT 2010
On Jul 12, 2010, at 10:36 PM, Douglas Gregor wrote:
>
> On Jul 12, 2010, at 5:24 PM, Devang Patel wrote:
>
>> Author: dpatel
>> Date: Mon Jul 12 19:24:30 2010
>> New Revision: 108220
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=108220&view=rev
>> Log:
>> const qualify debug info for "this" for const methods.
>
> Shouldn't this handle volatile as well?
volatile methods ? Missed that one. Fixed.
-
Devang
>
> - Doug
>
>> Modified:
>> cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
>>
>> Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=108220&r1=108219&r2=108220&view=diff
>> ==============================================================================
>> --- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
>> +++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Jul 12 19:24:30 2010
>> @@ -536,6 +536,13 @@
>> Context.getPointerType(Context.getTagDeclType(Method->getParent()));
>> llvm::DIType ThisPtrType =
>> DebugFactory.CreateArtificialType(getOrCreateType(ThisPtr, Unit));
>> +
>> + if (Method->getTypeQualifiers() && Qualifiers::Const)
>> + ThisPtrType =
>> + DebugFactory.CreateDerivedType(llvm::dwarf::DW_TAG_const_type,
>> + Unit, "", Unit,
>> + 0, 0, 0, 0, 0, ThisPtrType);
>> +
>> TypeCache[ThisPtr.getAsOpaquePtr()] = ThisPtrType;
>> Elts.push_back(ThisPtrType);
>>
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
More information about the cfe-commits
mailing list