diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-27 01:34:14 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-27 01:34:14 +0000 |
commit | d649c0ad56237c66ce1bfdf349fcc4718031f663 (patch) | |
tree | 6bfc744b999fd0dfdfe472c514f6f4def4ba5d88 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | aa772feb8ec053b2c8cef2fe6af5676157334f36 (diff) | |
download | bcm5719-llvm-d649c0ad56237c66ce1bfdf349fcc4718031f663.tar.gz bcm5719-llvm-d649c0ad56237c66ce1bfdf349fcc4718031f663.zip |
[PM] Refactor the core logic to run EarlyCSE over a function into an
object that manages a single run of this pass.
This was already essentially how it worked. Within the run function, it
would point members at *stack local* allocations that were only live for
a single run. Instead, it seems much cleaner to have a utility object
whose lifetime is clearly bounded by the run of the pass over the
function and can use member variables in a more direct way.
This also makes it easy to plumb the analyses used into it from the pass
and will make it re-usable with the new pass manager.
No functionality changed here, its just a refactoring.
llvm-svn: 227162
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
0 files changed, 0 insertions, 0 deletions