From 4a2cdc3302df9c40308c0fabafa0775d9b601a0a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 4 Aug 2009 04:02:57 +0000 Subject: [PATCH] Update for LLVM API change llvm-svn: 78044 --- clang/lib/Frontend/Backend.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/Frontend/Backend.cpp b/clang/lib/Frontend/Backend.cpp index 3a4c56beab51..650e2139db22 100644 --- a/clang/lib/Frontend/Backend.cpp +++ b/clang/lib/Frontend/Backend.cpp @@ -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);