[PGO] RawProf Reader code cleanup
authorXinliang David Li <davidxl@google.com>
Wed, 28 Oct 2015 19:34:04 +0000 (19:34 +0000)
committerXinliang David Li <davidxl@google.com>
Wed, 28 Oct 2015 19:34:04 +0000 (19:34 +0000)
commit1e668490c01d2b5412015e2eb18a5c0bc900bd46
tree9e9a1333f020fefc562ee08e5b6ec26eb23e268b
parent6e6a508cb9fdf20250b6e7a4692b7b5b69fd5580
[PGO] RawProf Reader code cleanup

Add a couple of helper methods to make the primary
raw profile reader interface's implementation more
readable. It also hides more format details. This
patch has no functional change.

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