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/MSP430/MSP430TargetMachine.cpp | |
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/MSP430/MSP430TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/MSP430/MSP430TargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp b/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp index 3acf96bb7d2..817001d6ad7 100644 --- a/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp +++ b/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp @@ -60,12 +60,12 @@ TargetPassConfig *MSP430TargetMachine::createPassConfig(PassManagerBase &PM) { bool MSP430PassConfig::addInstSelector() { // Install an instruction selector. - PM->add(createMSP430ISelDag(getMSP430TargetMachine(), getOptLevel())); + addPass(createMSP430ISelDag(getMSP430TargetMachine(), getOptLevel())); return false; } bool MSP430PassConfig::addPreEmitPass() { // Must run branch selection immediately preceding the asm printer. - PM->add(createMSP430BranchSelectionPass()); + addPass(createMSP430BranchSelectionPass()); return false; } |