mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27: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:
@@ -52,7 +52,7 @@ Pass *createLowerAllocationsPass(const TargetData &TD) {
|
||||
return new LowerAllocations(TD);
|
||||
}
|
||||
|
||||
static RegisterPass<LowerAllocations>
|
||||
static RegisterOpt<LowerAllocations>
|
||||
X("lowerallocs", "Lower allocations from instructions to calls (TD)",
|
||||
createLowerAllocationsPass);
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace {
|
||||
void FindSafeAllocas(Function &F);
|
||||
};
|
||||
|
||||
RegisterPass<PromotePass> X("mem2reg", "Promote Memory to Register");
|
||||
RegisterOpt<PromotePass> X("mem2reg", "Promote Memory to Register");
|
||||
} // end of anonymous namespace
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user