update for llvm api changes.

llvm-svn: 95125
This commit is contained in:
Chris Lattner 2010-02-02 21:06:50 +00:00
parent f0cb12acf2
commit 60272554aa
1 changed files with 3 additions and 3 deletions

View File

@ -306,12 +306,12 @@ bool BackendConsumer::AddEmitPasses() {
// Normal mode, emit a .s file by running the code generator.
// Note, this also adds codegenerator level optimization passes.
switch (TM->addPassesToEmitFile(*PM, FormattedOutStream,
TargetMachine::AssemblyFile, OptLevel)) {
TargetMachine::CGFT_AssemblyFile,
OptLevel)) {
default:
case FileModel::Error:
Diags.Report(diag::err_fe_unable_to_interface_with_target);
return false;
case FileModel::AsmFile:
case TargetMachine::CGFT_AssemblyFile:
break;
}
}