Update due to mainline API change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70769 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/MSP430/MSP430TargetMachine.cpp b/lib/Target/MSP430/MSP430TargetMachine.cpp
index 155f8c2..7886946 100644
--- a/lib/Target/MSP430/MSP430TargetMachine.cpp
+++ b/lib/Target/MSP430/MSP430TargetMachine.cpp
@@ -47,17 +47,19 @@
return new MSP430TargetAsmInfo(*this);
}
-bool MSP430TargetMachine::addInstSelector(PassManagerBase &PM, bool Fast) {
+bool MSP430TargetMachine::addInstSelector(PassManagerBase &PM,
+ CodeGenOpt::Level OptLevel) {
// Install an instruction selector.
- PM.add(createMSP430ISelDag(*this));
+ PM.add(createMSP430ISelDag(*this, OptLevel));
return false;
}
bool MSP430TargetMachine::addAssemblyEmitter(PassManagerBase &PM,
- bool Fast, bool Verbose,
+ CodeGenOpt::Level OptLevel,
+ bool Verbose,
raw_ostream &Out) {
// Output assembly language.
- PM.add(createMSP430CodePrinterPass(Out, *this, Fast, Verbose));
+ PM.add(createMSP430CodePrinterPass(Out, *this, OptLevel, Verbose));
return false;
}