Re-apply "InstrProf: When reading, copy the data instead of taking a reference. NFC"
authorJustin Bogner <mail@justinbogner.com>
Mon, 22 Jun 2015 23:58:05 +0000 (23:58 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 22 Jun 2015 23:58:05 +0000 (23:58 +0000)
commitb06f3b4a33ff68efef7f14f1f102c54def786f8f
tree10bd85d32c8040edaef46cf5b6fd6735223d72b2
parentfe3176fc13733c8111ab89a744be4ce228a992a3
Re-apply "InstrProf: When reading, copy the data instead of taking a reference. NFC"

This version fixes a missing include that MSVC noticed and
clarifies the ownership of the counter buffer that's passed to
InstrProfRecord.

This restores r240206, which was reverted in r240208.

Patch by Betul Buyukkurt.

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