Move the DataLayout to the generic TargetMachine, making it mandatory.
[oota-llvm.git] / lib / Target / BPF / BPFTargetMachine.h
index 1bfaafc6a581842e5df011745618d7ffb7f9da36..b31a5a7a01253a1f390d5e5d30df2048b65a01dc 100644 (file)
@@ -27,6 +27,7 @@ public:
                    const TargetOptions &Options, Reloc::Model RM,
                    CodeModel::Model CM, CodeGenOpt::Level OL);
 
+  const DataLayout *getDataLayout() const override { return &DL; }
   const BPFSubtarget *getSubtargetImpl() const override { return &Subtarget; }
 
   TargetPassConfig *createPassConfig(PassManagerBase &PM) override;