ProfileData: Avoid unnecessary copies of CounterData
authorJustin Bogner <mail@justinbogner.com>
Wed, 23 Apr 2014 18:50:16 +0000 (18:50 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 23 Apr 2014 18:50:16 +0000 (18:50 +0000)
commit08a4d0b36fd21d98364c6a8ca6bff98a22af43ab
tree33cca859c3d45abe45d67f75b7d107e8f3c99338
parent94a9772abc771682d38e32bb18703de53a7fd5d9
ProfileData: Avoid unnecessary copies of CounterData

We're currently copying CounterData from InstrProfWriter into the
OnDiskHashTable, even though we don't need to, and then carelessly
leaking those copies. A const pointer is much better here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207009 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/InstrProfWriter.cpp