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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to