[cfe-commits] r110697 - in /cfe/trunk: lib/CodeGen/CGDebugInfo.cpp test/CodeGen/enum2.c

Devang Patel dpatel at apple.com
Tue Aug 10 13:59:38 PDT 2010


On Aug 10, 2010, at 1:44 PM, Chris Lattner wrote:

> 
> On Aug 10, 2010, at 11:27 AM, Devang Patel wrote:
> 
>> Author: dpatel
>> Date: Tue Aug 10 13:27:15 2010
>> New Revision: 110697
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=110697&view=rev
>> Log:
>> Do not use DIGlobalVariable to emit debugging information for enums.
> 
> Hey Devang,
> 
> It would be much better to check that the declrefexpr is or isn't referring to an enum that it is to catch it after a bunch of stuff has been done.  Can you hoist the check earlier and make it happen on the AST?
> 

This is the only place where getOrCreateType() gets a chance to create debug info for enum type. Here we only need debug info for enum type and not for the enumerator constant.
-
Devang






More information about the cfe-commits mailing list