aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
diff options
context:
space:
mode:
authorYuhao Gu <yhgu2000@outlook.com>2023-08-18 16:31:00 +0000
committerGulfem Savrun Yeniceri <gulfem@google.com>2023-08-18 16:43:45 +0000
commit57cb2f6ffe63bbb1b753310aaa102614c00249ec (patch)
tree0eb23aea4ef3361cae5f538859a92da327d02e8c /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
parentf631a10ac364ba39a396cb823ca1ca5eff4ad8b3 (diff)
downloadllvm-57cb2f6ffe63bbb1b753310aaa102614c00249ec.zip
llvm-57cb2f6ffe63bbb1b753310aaa102614c00249ec.tar.gz
llvm-57cb2f6ffe63bbb1b753310aaa102614c00249ec.tar.bz2
Reland "[llvm-cov] Support multi-source object files for convert-for-testing"
`llvm-cov convert-for-testing` only functions properly when the input binary contains a single source file. When the binary has multiple source files, a `Malformed coverage data` error will occur when the generated .covmapping is read back. This is because the testing format lacks support for indicating the size of its file records, and current implementation just assumes there's only one record in it. This patch fixes this problem by introducing a new testing format version. Changes to the code: - Add a new format version. The version number is stored in the the last 8 bytes of the orignial magic number field to be backward-compatible. - Output a LEB128 number before the file records section to indicate its size in the new version. - Change the format parsing code correspondingly. - Update the document to formalize the testing format. - Additionally, fix the bug when converting COFF binaries. Reviewed By: phosek, gulfem Differential Revision: https://reviews.llvm.org/D156611
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions