OSDN Git Service

blockfreq: Implement Pass::releaseMemory()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 25 Mar 2014 18:01:38 +0000 (18:01 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 25 Mar 2014 18:01:38 +0000 (18:01 +0000)
commit27e1ca8189e0c566092dd165903d0cf3f89f16a3
tree5df62d3b7e607781055049cefae5a5bc6e7b6bf2
parent8451e1baa9fa3921c7820d7f279fcebd5581b01d
blockfreq: Implement Pass::releaseMemory()

Implement Pass::releaseMemory() in BlockFrequencyInfo and
MachineBlockFrequencyInfo.  Just delete the private implementation when
not in use.  Switch to a std::unique_ptr to make the logic more clear.

<rdar://problem/14292693>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204741 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyInfo.h
include/llvm/CodeGen/MachineBlockFrequencyInfo.h
lib/Analysis/BlockFrequencyInfo.cpp
lib/CodeGen/MachineBlockFrequencyInfo.cpp