[PATCH] multiple inlining scopes for a single source location

David Blaikie dblaikie at gmail.com
Tue Mar 5 10:12:42 PST 2013


On Tue, Mar 5, 2013 at 10:00 AM, Eric Christopher <echristo at gmail.com> wrote:
> Hi Adrian,
>
> Thinking about this I wonder if we might want two EmitLocation routines
> instead, with one to force the column. Another thought is just to always
> emit it and ignore it in the backend. Can you take a look at that and see
> whether it would be better?

Off-hand: I believe one of the reasons we dropped column information
is that computing it in the front end is noticeably expensive, though
I may've misunderstood.

> Also please update the comment to not reference
> internal apple clang versions and instead reference svn revisions (or,
> instead and better, just describe the changes).
>
> -eric
>
>
> On Fri, Mar 1, 2013 at 5:53 PM, Adrian Prantl <aprantl at apple.com> wrote:
>>
>> On Wed Feb 27 12:45:37 Manman Ren wrote:
>> > Given an example with two function calls in a single line, without
>> > -gcolumn-info, both function calls will be at the same source location.
>> > And Clang will generate a single coalesced inlining scope since we
>> > unique scopes by the source location.
>> >
>> > Even without -gcolumn-info, we should generate two inlining scopes. This
>> > means we should differentiate the different call sites with the same source
>> > location.
>> > One option is to use the column info in SourceLoc to store the call site
>> > id when -gcolumn-info is not on.
>> >
>> > Any problem with this? Any other better suggestions?
>>
>> Here’s a patch for review that implements this. I’m using the actual
>> column info rather than the (arbitrary?) call site id.
>>
>> thanks,
>> Adrian
>>
>> ---------
>>
>> Force column info to be generated for call expressions so we
>> can differentiate multiple call sites on the same line in the
>> debug info.
>>
>> Fixes rdar://problem/13036237
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>
>
> _______________________________________________
> 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