mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Add support for different "PassType's" * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Remove getPassName implementations from various subclasses git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,7 +42,7 @@ namespace {
|
||||
}
|
||||
};
|
||||
|
||||
RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
|
||||
RegisterOpt<DeadInstElimination> X("die", "Dead Instruction Elimination");
|
||||
}
|
||||
|
||||
Pass *createDeadInstEliminationPass() {
|
||||
@@ -64,7 +64,7 @@ namespace {
|
||||
}
|
||||
};
|
||||
|
||||
RegisterPass<DCE> Y("dce", "Dead Code Elimination");
|
||||
RegisterOpt<DCE> Y("dce", "Dead Code Elimination");
|
||||
}
|
||||
|
||||
bool DCE::runOnFunction(Function &F) {
|
||||
|
||||
Reference in New Issue
Block a user