Fix LLVM C API for DataLayout
[oota-llvm.git] / include / llvm / Target / TargetMachine.h
index b2df9014bb7de99be1a5db642d348910d461f5c7..b40e4a69a4d28adf67e21aadc37c6efea6c56970 100644 (file)
@@ -59,13 +59,6 @@ class PassManagerBase;
 }
 using legacy::PassManagerBase;
 
-extern "C" {
-// This function from the C API is deprecated. We still supports it using a
-// private method on the TargetMachine for now. But it needs to be friended and
-// so we forward declare it here.
-LLVMTargetDataRef LLVMGetTargetMachineData(LLVMTargetMachineRef T);
-}
-
 //===----------------------------------------------------------------------===//
 ///
 /// Primary interface to the complete machine description for the target
@@ -113,8 +106,7 @@ protected: // Can only create subclasses.
   /// This API is here to support the C API, deprecated in 3.7 release.
   /// This should never be used outside of legacy existing client.
   const DataLayout &getDataLayout() const { return DL; }
-  friend struct LLVMOpaqueTargetData *
-  LLVMGetTargetMachineData(LLVMTargetMachineRef T);
+  friend struct C_API_PRIVATE_ACCESS;
 
 public:
   mutable TargetOptions Options;