[clang] [DebugInfo] Improve efficiency of CGDebugInfo by using PresumedLoc. (PR #164608)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 5 04:02:24 PST 2025


SergejSalnikov wrote:

No. Unfortunately I do not have any numbers. But doing multiple expansion calls for the same location seems inefficient.

The PR simply replaces `SourceLocation` with `PresumedLoc` so readability wise the code should be equivalent. But in fact we don't really need `SourceLocation` as we consume the data from `PresumedLoc` object. What is the point in storing SourceLocation then.

https://github.com/llvm/llvm-project/pull/164608


More information about the cfe-commits mailing list