Add flag to llvm-profdata to allow symbols in profile data to be remapped, and
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Sep 2018 20:22:02 +0000 (20:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Sep 2018 20:22:02 +0000 (20:22 +0000)
commit3164fcfd273b37931e30a631f525d52ac2897fc0
treed479607972de427c95f835c932659126e37ab436
parent2ce2652716aa1314d23b70895c67c6043842d7bd
Add flag to llvm-profdata to allow symbols in profile data to be remapped, and
add a tool to generate symbol remapping files.

Summary:
The new tool llvm-cxxmap builds a symbol mapping table from a file containing
a description of partial equivalences to apply to mangled names and files
containing old and new symbol tables.

Reviewers: davidxl

Subscribers: mgorny, llvm-commits

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

llvm-svn: 342168
24 files changed:
llvm/docs/CommandGuide/index.rst
llvm/docs/CommandGuide/llvm-cxxmap.rst [new file with mode: 0644]
llvm/docs/CommandGuide/llvm-profdata.rst
llvm/test/tools/llvm-cxxmap/Inputs/after.sym [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/Inputs/ambiguous.sym [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/Inputs/before.sym [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/Inputs/expected [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/Inputs/incomplete.sym [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/Inputs/remap.map [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/ambiguous.test [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/incomplete.test [new file with mode: 0644]
llvm/test/tools/llvm-cxxmap/remap.test [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/instr-remap.expected [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/instr-remap.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/instr-remap.remap [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/sample-remap.expected [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/sample-remap.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/sample-remap.remap [new file with mode: 0644]
llvm/test/tools/llvm-profdata/instr-remap.test [new file with mode: 0644]
llvm/test/tools/llvm-profdata/sample-remap.test [new file with mode: 0644]
llvm/tools/llvm-cxxmap/CMakeLists.txt [new file with mode: 0644]
llvm/tools/llvm-cxxmap/LLVMBuild.txt [new file with mode: 0644]
llvm/tools/llvm-cxxmap/llvm-cxxmap.cpp [new file with mode: 0644]
llvm/tools/llvm-profdata/llvm-profdata.cpp