OSDN Git Service

[PGO] Indexed Prof Reader refactoring (NFC)
authorXinliang David Li <davidxl@google.com>
Wed, 28 Oct 2015 04:20:31 +0000 (04:20 +0000)
committerXinliang David Li <davidxl@google.com>
Wed, 28 Oct 2015 04:20:31 +0000 (04:20 +0000)
commit50b691de429a0bbb4b272e87d58070bbae237f2a
treec074afac559742d426520934556c66e52570484e
parent1d1d5f60906cc89e0e46dbd51e85f622dc806a65
[PGO] Indexed Prof Reader refactoring (NFC)

Change InstrProfReaderIndex from typedef into a wrapper
class with helper methods. This makes the index profile
reader code more readable. It also hides the implementation
detail of the index format and make it more flexible to allow
support different (or more than one) format in the future.

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