[PGO] InstrPGO and coverage code refactoring (NFC)
authorXinliang David Li <davidxl@google.com>
Thu, 17 Dec 2015 00:53:37 +0000 (00:53 +0000)
committerXinliang David Li <davidxl@google.com>
Thu, 17 Dec 2015 00:53:37 +0000 (00:53 +0000)
commit88a450e9e9ab369dd93b5426b038ddaba612cba1
tree3592b2ad66724489c009f32928f74e89775b7866
parentb26c1cd856e631ee51c0b1df238af9ec3bc2cc8b
[PGO] InstrPGO and coverage code refactoring (NFC)

Introduce a new class InstrProfSymtab to abstract
the PGO symbol table for prof and coverage reader.
The symtab is is to lookup function's PGO name
using function keys. The first user of the class
is CoverageMapping Reader. More will follow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255862 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
lib/ProfileData/CoverageMappingReader.cpp