#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;
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;