Remove the TargetMachine forwards for TargetSubtargetInfo based
[oota-llvm.git] / docs / GarbageCollection.rst
index dc6dab1d336cc32ad2c6563294fe240ef5c367f4..49d3496748e202751ad13aa47b87c2823476f5ab 100644 (file)
@@ -923,7 +923,7 @@ a realistic example:
 
   void MyGCPrinter::finishAssembly(AsmPrinter &AP) {
     MCStreamer &OS = AP.OutStreamer;
-    unsigned IntPtrSize = AP.TM.getDataLayout()->getPointerSize();
+    unsigned IntPtrSize = AP.TM.getSubtargetImpl()->getDataLayout()->getPointerSize();
 
     // Put this in the data section.
     OS.SwitchSection(AP.getObjFileLowering().getDataSection());