Use the methods and classes that were added to simplify LowerCall and
[oota-llvm.git] / lib / ExecutionEngine / ExecutionEngineBindings.cpp
index 5539542a313962f165de79a0573c349a11e7c8dc..1e790e781da07e48cfbeca67a86fa4ce564ce397 100644 (file)
@@ -76,9 +76,7 @@ double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal) {
     return unwrap(GenVal)->DoubleVal;
   default:
     llvm_unreachable("LLVMGenericValueToFloat supports only float and double.");
-    break;
   }
-  return 0; // Not reached
 }
 
 void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal) {
@@ -237,11 +235,11 @@ LLVMBool LLVMFindFunction(LLVMExecutionEngineRef EE, const char *Name,
 }
 
 void *LLVMRecompileAndRelinkFunction(LLVMExecutionEngineRef EE, LLVMValueRef Fn) {
-    return unwrap(EE)->recompileAndRelinkFunction(unwrap<Function>(Fn));
+  return unwrap(EE)->recompileAndRelinkFunction(unwrap<Function>(Fn));
 }
 
 LLVMTargetDataRef LLVMGetExecutionEngineTargetData(LLVMExecutionEngineRef EE) {
-  return wrap(unwrap(EE)->getTargetData());
+  return wrap(unwrap(EE)->getDataLayout());
 }
 
 void LLVMAddGlobalMapping(LLVMExecutionEngineRef EE, LLVMValueRef Global,