author | Justin Bogner <mail@justinbogner.com> | |
Wed, 23 Apr 2014 18:50:16 +0000 (18:50 +0000) | ||
committer | Justin Bogner <mail@justinbogner.com> | |
Wed, 23 Apr 2014 18:50:16 +0000 (18:50 +0000) | ||
commit | 08a4d0b36fd21d98364c6a8ca6bff98a22af43ab | |
tree | 33cca859c3d45abe45d67f75b7d107e8f3c99338 | tree | snapshot (tar.xz tar.gz zip) |
parent | 94a9772abc771682d38e32bb18703de53a7fd5d9 | commit | diff |
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
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 | diff | blob | history |