diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2012-07-02 19:48:31 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2012-07-02 19:48:31 +0000 |
| commit | bbd38dd9c0eef75676f06a681a70741fc351e43b (patch) | |
| tree | 2c2ae500f51399c94c0e6d316dab973e3744111d /llvm/lib/Target/Mips | |
| parent | 36e31cca7813317bafd472e6b580ac9db3fd6fe4 (diff) | |
| download | bcm5719-llvm-bbd38dd9c0eef75676f06a681a70741fc351e43b.tar.gz bcm5719-llvm-bbd38dd9c0eef75676f06a681a70741fc351e43b.zip | |
Add all codegen passes to the PassManager via TargetPassConfig.
This is a preliminary step toward having TargetPassConfig be able to
start and stop the compilation at specified passes for unit testing
and debugging. No functionality change.
llvm-svn: 159567
Diffstat (limited to 'llvm/lib/Target/Mips')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsTargetMachine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.cpp b/llvm/lib/Target/Mips/MipsTargetMachine.cpp index b03baa81f2a..dd5d35f10d4 100644 --- a/llvm/lib/Target/Mips/MipsTargetMachine.cpp +++ b/llvm/lib/Target/Mips/MipsTargetMachine.cpp @@ -116,7 +116,7 @@ TargetPassConfig *MipsTargetMachine::createPassConfig(PassManagerBase &PM) { // Install an instruction selector pass using // the ISelDag to gen Mips code. bool MipsPassConfig::addInstSelector() { - PM->add(createMipsISelDag(getMipsTargetMachine())); + addPass(createMipsISelDag(getMipsTargetMachine())); return false; } @@ -125,11 +125,11 @@ bool MipsPassConfig::addInstSelector() { // print out the code after the passes. bool MipsPassConfig::addPreEmitPass() { MipsTargetMachine &TM = getMipsTargetMachine(); - PM->add(createMipsDelaySlotFillerPass(TM)); + addPass(createMipsDelaySlotFillerPass(TM)); // NOTE: long branch has not been implemented for mips16. if (TM.getSubtarget<MipsSubtarget>().hasStandardEncoding()) - PM->add(createMipsLongBranchPass(TM)); + addPass(createMipsLongBranchPass(TM)); return true; } |

