Remove the use of TargetMachine from PPCJITInfo and replace with
[oota-llvm.git] / lib / Target / PowerPC / PPCJITInfo.cpp
index 7bbc71bd1fa91e91ec2e9817c76d3cc4333211c2..f3c83c6a56677ab1049a25a7bd856bda41047c4d 100644 (file)
@@ -393,7 +393,7 @@ void *PPCJITInfo::emitFunctionStub(const Function* F, void *Fn,
     JCE.emitWordBE(0xf821ffb1);     // stdu r1,-80(r1)
     JCE.emitWordBE(0x7d6802a6);     // mflr r11
     JCE.emitWordBE(0xf9610060);     // std r11, 96(r1)
-  } else if (TM.getSubtargetImpl()->isDarwinABI()){
+  } else if (Subtarget.isDarwinABI()){
     JCE.emitWordBE(0x9421ffe0);     // stwu r1,-32(r1)
     JCE.emitWordBE(0x7d6802a6);     // mflr r11
     JCE.emitWordBE(0x91610028);     // stw r11, 40(r1)