Update for LLVM API change

llvm-svn: 78044
This commit is contained in:
Daniel Dunbar 2009-08-04 04:02:57 +00:00
parent 09c1d0002b
commit 4a2cdc3302
1 changed files with 1 additions and 2 deletions

View File

@ -222,8 +222,7 @@ bool BackendConsumer::AddEmitPasses(std::string &Error) {
Features.AddFeature(*it);
FeaturesStr = Features.getString();
}
TargetMachine *TM = TheTarget->createTargetMachine(*TheModule, Triple,
FeaturesStr);
TargetMachine *TM = TheTarget->createTargetMachine(Triple, FeaturesStr);
// Set register scheduler & allocation policy.
RegisterScheduler::setDefault(createDefaultScheduler);