[llvm-bugs] [Bug 27975] Compiler no longer generating debug info for inlined templated member function at -O2

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 2 21:24:32 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27975

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from David Blaikie <dblaikie at gmail.com> ---
Ah, OK, I see better now - thanks for the sample.

Yes, I believe this is by design and the explicit (and only) intent of r265876.

Once a function is optimized away entirely, we will no longer generate debug
info for it (as of r265876).

Normal member functions will remain in a type - but implicit special members
and member function template specializations are special in a way. To talk
about member function template specializations: The set is unbounded, so the
absence of debug info for such a specialization doesn't mean one isn't present
in another translation unit, etc. So there's not much point generating debug
info for it.

Once a function is optimized away, we should produce debug info as if it were
never there/never generated. That's the goal & I think this patch brought us
much closer to that - though I forget/not sure how close we were before this
patch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160603/9fbd307c/attachment.html>


More information about the llvm-bugs mailing list