multiple inlining scopes for a single source location

Manman Ren mren at apple.com
Wed Feb 27 10:45:37 PST 2013


Hi all,

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?

Thanks,
Manman



More information about the llvm-commits mailing list