HomePhabricator

[Remarks] Add support for linking remarks

Authored by thegameg on Sep 10 2019, 3:48 PM.

Description

[Remarks] Add support for linking remarks

Remarks are usually emitted per-TU, and for generating a standalone
remark file that can be shipped with the linked binary we need some kind
of tool to merge everything together.

The remarks::RemarkLinker class takes care of this and:

  • Deduplicates remarks
  • Filters remarks with no debug location
  • Merges string tables from all the entries

As an output, it provides an iterator range that can be used to
serialize the remarks to a file.

Differential Revision: https://reviews.llvm.org/D69141

Details

Committed
thegamegOct 31 2019, 3:26 PM
Differential Revision
D69141: [Remarks] Add support for linking remarks
Parents
rGf9061049c154: Quote path to Python 3 executable in case it contains spaces
Branches
Unknown
Tags
Unknown