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)
commit3a7d44cb81245783d20076801900373cffefdb0d
tree84d79778422f2985b0bacc40388d00f1ab9b1671
parent09829f440b4793b00df325c09fae30677e531f70
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.

llvm-svn: 240360
llvm/include/llvm/ProfileData/InstrProf.h
llvm/include/llvm/ProfileData/InstrProfReader.h
llvm/lib/ProfileData/InstrProfReader.cpp