mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Change to use new pass accessor functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd0ef77cde
commit
417fbe5287
@ -65,15 +65,15 @@ int main(int argc, char **argv) {
|
|||||||
// a little bit. Do this now.
|
// a little bit. Do this now.
|
||||||
//
|
//
|
||||||
PassManager Passes;
|
PassManager Passes;
|
||||||
Passes.add(new DeadInstElimination()); // Remove Dead code/vars
|
Passes.add(createDeadInstEliminationPass()); // Remove Dead code/vars
|
||||||
Passes.add(new RaiseAllocations()); // call %malloc -> malloc inst
|
Passes.add(createRaiseAllocationsPass()); // call %malloc -> malloc inst
|
||||||
Passes.add(new CleanupGCCOutput()); // Fix gccisms
|
Passes.add(createCleanupGCCOutputPass()); // Fix gccisms
|
||||||
Passes.add(new InductionVariableSimplify()); // Simplify indvars
|
Passes.add(createIndVarSimplifyPass()); // Simplify indvars
|
||||||
Passes.add(new RaisePointerReferences()); // Eliminate casts
|
Passes.add(createRaisePointerReferencesPass()); // Eliminate casts
|
||||||
Passes.add(new ConstantMerge()); // Merge dup global consts
|
Passes.add(createConstantMergePass()); // Merge dup global consts
|
||||||
Passes.add(new InstructionCombining()); // Combine silly seq's
|
Passes.add(createInstructionCombiningPass()); // Combine silly seq's
|
||||||
Passes.add(new DeadCodeElimination()); // Remove Dead code/vars
|
Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars
|
||||||
Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...
|
Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...
|
||||||
|
|
||||||
// Run our queue of passes all at once now, efficiently.
|
// Run our queue of passes all at once now, efficiently.
|
||||||
Passes.run(M.get());
|
Passes.run(M.get());
|
||||||
|
Loading…
Reference in New Issue
Block a user