diff options
author | Zequan Wu <zequanwu@google.com> | 2023-08-14 15:36:47 -0400 |
---|---|---|
committer | Zequan Wu <zequanwu@google.com> | 2023-09-15 13:47:23 -0400 |
commit | 32db121b29f78e4c41116b2a8f1c730f9522b202 (patch) | |
tree | 4c66df9c85ffa13db1352f8a3087aff895c73389 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 79e96b2457fe4e1586effc36aab657c508c122cf (diff) | |
download | llvm-32db121b29f78e4c41116b2a8f1c730f9522b202.zip llvm-32db121b29f78e4c41116b2a8f1c730f9522b202.tar.gz llvm-32db121b29f78e4c41116b2a8f1c730f9522b202.tar.bz2 |
[Coverage] Allow Clang coverage to be used with debug info correlation.
Debug info correlation is an option in InstrProfiling pass, which is used by
both IR instrumentation and front-end instrumentation. So, Clang coverage can
also benefits the binary size saving from it.
Reviewed By: ellis
Differential Revision: https://reviews.llvm.org/D157913
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
-rw-r--r-- | llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp index ac83b21..f879c73 100644 --- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp +++ b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp @@ -361,7 +361,7 @@ Error CoverageMapping::loadFromFile( SmallVector<object::BuildIDRef> BinaryIDs; auto CoverageReadersOrErr = BinaryCoverageReader::create( - CovMappingBufRef, Arch, Buffers, CompilationDir, + CovMappingBufRef, ProfileReader, Arch, Buffers, CompilationDir, FoundBinaryIDs ? &BinaryIDs : nullptr); if (Error E = CoverageReadersOrErr.takeError()) { E = handleMaybeNoDataFoundError(std::move(E)); |