InstrProf: When reading, copy the data instead of taking a reference. NFC
authorJustin Bogner <mail@justinbogner.com>
Sat, 20 Jun 2015 01:26:04 +0000 (01:26 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sat, 20 Jun 2015 01:26:04 +0000 (01:26 +0000)
commit9edccc8b408ae286b1758be66be0fc3656e396cc
treea0955a95dee0aaacf2243acbbc84c66e5c850cb1
parentcdc126d29301e174dd7b12a1290fca73cf738320
InstrProf: When reading, copy the data instead of taking a reference. NFC

This consolidates the logic to read instrprof records into the on disk
hash table's lookup trait and makes us copy the counter data instead
of taking references to it as we read. This will simplify further
changes to the format.

Patch by Betul Buyukkurt.

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