[llvm-bugs] [Bug 42608] New: llvm-cov does not demangle template instantiations

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 12 12:52:41 PDT 2019


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

            Bug ID: 42608
           Summary: llvm-cov does not demangle template instantiations
           Product: new-bugs
           Version: 8.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: thomas.braun at virtuell-zuhause.de
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Consider the following template

```
template <typename T>
void DoStuff(T)
{
;
}
```

in the coverage report with -show-instantiations enabled and llvm-cxxfilt as
demangler I do get a properly demangled name for the function summary.

But the separate instantiations do not get demangled function names.

>From a very course look at the code it looks like that in [1] only the names of
the functions are feed into the demangler, but the instantion groups from [2]
are missed.

[1]:
https://github.com/llvm-mirror/llvm/blob/4385104c44f7189db633f82379f596dae90ff6e9/tools/llvm-cov/CodeCoverage.cpp#L904
[2]:
https://github.com/llvm-mirror/llvm/blob/6b547686c5410b7528212e898fe30fc7ee7a70a3/include/llvm/ProfileData/Coverage/CoverageMapping.h#L583

-- 
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/20190712/ee21a294/attachment.html>


More information about the llvm-bugs mailing list