[llvm-bugs] [Bug 44963] New: How to eliminate unused functions for code coverage report?

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 19 04:16:38 PST 2020


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

            Bug ID: 44963
           Summary: How to eliminate unused functions for code coverage
                    report?
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yurybura at gmail.com
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

Created attachment 23145
  --> https://bugs.llvm.org/attachment.cgi?id=23145&action=edit
Example to reproduce

Hi!
I'm using Clang/LLD v10.0.0-rc2 on Windows to collect code coverage report
(please find attached example).

I need to eliminate all unused functions from produced binary. I use /OPC:REF
linker option for this but it doesn't help if -fprofile-instr-generate compiler
option is used. If I remove -fprofile-instr-generate unused functions are
discarded.

-- 
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/20200219/9a28032a/attachment-0001.html>


More information about the llvm-bugs mailing list