Revert "Fix LLVM C API for DataLayout"
[oota-llvm.git] / include / llvm / Target / TargetMachine.h
index 9dc0d36e020b268403e34154e9126e49725814c0..d707e7c029303166369a48dc84b7a8db16ddedba 100644 (file)
 #include <cassert>
 #include <string>
 
-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);
-}
-
 namespace llvm {
 
 class InstrItineraryData;
@@ -110,12 +103,6 @@ protected: // Can only create subclasses.
 
   unsigned RequireStructuredCFG : 1;
 
-  /// 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);
-
 public:
   mutable TargetOptions Options;