Use (void *)(intptr_t) to cast function addresses to void*
[oota-llvm.git] / tools / lto / LTOModule.cpp
index 9a8b155275ffb3c53b04e90fefdb14d4ea0744f4..cbfb04861f5a01f3e33e5367a8aeb3507d99e179 100644 (file)
@@ -156,16 +156,13 @@ LTOModule* LTOModule::makeLTOModule(MemoryBuffer* buffer,
       Triple = sys::getHostTriple();
 
     // find machine architecture for this module
-    const Target* march = TargetRegistry::lookupTarget(Triple, 
-                                                       /*FallbackToHost=*/false,
-                                                       /*RequireJIT=*/false,
-                                                       errMsg);
+    const Target* march = TargetRegistry::lookupTarget(Triple, errMsg);
     if ( march == NULL ) 
         return NULL;
 
     // construct LTModule, hand over ownership of module and target
     std::string FeatureStr = getFeatureString(Triple.c_str());
-    TargetMachine* target = march->createTargetMachine(*m, Triple, FeatureStr);
+    TargetMachine* target = march->createTargetMachine(Triple, FeatureStr);
     return new LTOModule(m.take(), target);
 }