bpf: fix build due to 'Move DataLayout back to the TargetMachine'
[oota-llvm.git] / lib / Target / BPF / BPFSubtarget.cpp
index 7a237ea0e0fafa77b81c17d24dd13f676c267b44..49addc37ab8de0f1df11afb03a57180c0693b0d5 100644 (file)
@@ -27,5 +27,5 @@ void BPFSubtarget::anchor() {}
 
 BPFSubtarget::BPFSubtarget(const std::string &TT, const std::string &CPU,
                            const std::string &FS, const TargetMachine &TM)
-    : BPFGenSubtargetInfo(TT, CPU, FS), DL("e-m:e-p:64:64-i64:64-n32:64-S128"),
-      InstrInfo(), FrameLowering(*this), TLInfo(TM), TSInfo(&DL) {}
+    : BPFGenSubtargetInfo(TT, CPU, FS), InstrInfo(), FrameLowering(*this),
+      TLInfo(TM), TSInfo(TM.getDataLayout()) {}