[llvm-bugs] [Bug 37816] New: [DWARF] Add count of template methods to the class definition

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 15 11:49:07 PDT 2018


            Bug ID: 37816
           Summary: [DWARF] Add count of template methods to the class
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: aprantl at apple.com, clayborg at gmail.com,
                    dblaikie at gmail.com, echristo at gmail.com,
                    labath at google.com, llvm-bugs at lists.llvm.org

Add a DWARF attribute to the class definition, reporting a count of
template methods (not instantiations) defined within the class.

In a discussion between myself and Greg Clayton
this seemed to be a fairly cheap way to provide LLDB with useful
information to help it translate DWARF into Clang ASTs without
excessive performance cost.

Of course this would have to be plumbed through from Clang CodeGen
through DIBuilder and down into DwarfDebug, with requisite stops
along the way in the bitcode reader/writer.  It can't be derived
within LLVM because this is a count of template *definitions* not

Probably worth proposing for DWARF v6; in the meantime it would
have to be an LLVM extension attribute.

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/20180615/063a20ce/attachment-0001.html>

More information about the llvm-bugs mailing list