summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-26 21:47:29 +0000
committerChris Lattner <sabre@nondot.org>2002-02-26 21:47:29 +0000
commit417fbe528769c83d37014ef31546e4ae9163a4de (patch)
treebbcaf6afbeb9505a7ae86f9cf1d74bd5eea61964 /tools
parentbd0ef77cde9c9e82f2b4ad33e4982c46274d6540 (diff)
downloadllvm-417fbe528769c83d37014ef31546e4ae9163a4de.tar.gz
llvm-417fbe528769c83d37014ef31546e4ae9163a4de.tar.bz2
llvm-417fbe528769c83d37014ef31546e4ae9163a4de.tar.xz
Change to use new pass accessor functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 4cb5d15630..4573ea9768 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -65,15 +65,15 @@ int main(int argc, char **argv) {
// a little bit. Do this now.
//
PassManager Passes;
- Passes.add(new DeadInstElimination()); // Remove Dead code/vars
- Passes.add(new RaiseAllocations()); // call %malloc -> malloc inst
- Passes.add(new CleanupGCCOutput()); // Fix gccisms
- Passes.add(new InductionVariableSimplify()); // Simplify indvars
- Passes.add(new RaisePointerReferences()); // Eliminate casts
- Passes.add(new ConstantMerge()); // Merge dup global consts
- Passes.add(new InstructionCombining()); // Combine silly seq's
- Passes.add(new DeadCodeElimination()); // Remove Dead code/vars
- Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...
+ Passes.add(createDeadInstEliminationPass()); // Remove Dead code/vars
+ Passes.add(createRaiseAllocationsPass()); // call %malloc -> malloc inst
+ Passes.add(createCleanupGCCOutputPass()); // Fix gccisms
+ Passes.add(createIndVarSimplifyPass()); // Simplify indvars
+ Passes.add(createRaisePointerReferencesPass()); // Eliminate casts
+ Passes.add(createConstantMergePass()); // Merge dup global consts
+ Passes.add(createInstructionCombiningPass()); // Combine silly seq's
+ Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars
+ Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...
// Run our queue of passes all at once now, efficiently.
Passes.run(M.get());