mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Begin adding static dependence information to passes, which will allow us to
perform initialization without static constructors AND without explicit initialization by the client. For the moment, passes are required to initialize both their (potential) dependencies and any passes they preserve. I hope to be able to relax the latter requirement in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -84,7 +84,10 @@ namespace {
|
||||
}
|
||||
|
||||
char PeepholeOptimizer::ID = 0;
|
||||
INITIALIZE_PASS(PeepholeOptimizer, "peephole-opts",
|
||||
INITIALIZE_PASS_BEGIN(PeepholeOptimizer, "peephole-opts",
|
||||
"Peephole Optimizations", false, false)
|
||||
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree)
|
||||
INITIALIZE_PASS_END(PeepholeOptimizer, "peephole-opts",
|
||||
"Peephole Optimizations", false, false)
|
||||
|
||||
FunctionPass *llvm::createPeepholeOptimizerPass() {
|
||||
|
Reference in New Issue
Block a user