diff options
author | Xinliang David Li <davidxl@google.com> | 2015-10-22 20:32:12 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-10-22 20:32:12 +0000 |
commit | 83bc4220ce99b23ec237e04e73c1010e481ac311 (patch) | |
tree | 78a5ec968768265ca29c42846ac430528659847f /llvm/lib/ProfileData/CoverageMappingReader.cpp | |
parent | e0675fb8fbc78bd1e60bab0c1fac711eab96ab6e (diff) | |
download | bcm5719-llvm-83bc4220ce99b23ec237e04e73c1010e481ac311.tar.gz bcm5719-llvm-83bc4220ce99b23ec237e04e73c1010e481ac311.zip |
Add helper functions and remove hard coded references to instProf related name/name-prefixes
This is a clean up patch that defines instr prof section and variable
name prefixes in a common header with access helper functions.
clang FE change will be done as a follow up once this patch is in.
Differential Revision: http://reviews.llvm.org/D13919
llvm-svn: 251058
Diffstat (limited to 'llvm/lib/ProfileData/CoverageMappingReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/CoverageMappingReader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/CoverageMappingReader.cpp b/llvm/lib/ProfileData/CoverageMappingReader.cpp index 334a3f51ec9..7fd5f009a91 100644 --- a/llvm/lib/ProfileData/CoverageMappingReader.cpp +++ b/llvm/lib/ProfileData/CoverageMappingReader.cpp @@ -477,10 +477,11 @@ static std::error_code loadBinaryFormat(MemoryBufferRef ObjectBuffer, : support::endianness::big; // Look for the sections that we are interested in. - auto NamesSection = lookupSection(*OF, "__llvm_prf_names"); + auto NamesSection = lookupSection(*OF, getInstrProfNameSectionName(false)); if (auto EC = NamesSection.getError()) return EC; - auto CoverageSection = lookupSection(*OF, "__llvm_covmap"); + auto CoverageSection = + lookupSection(*OF, getInstrProfCoverageSectionName(false)); if (auto EC = CoverageSection.getError()) return EC; |