diff options
Diffstat (limited to 'docs/GarbageCollection.rst')
-rw-r--r-- | docs/GarbageCollection.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/GarbageCollection.rst b/docs/GarbageCollection.rst index dc6dab1d33..49d3496748 100644 --- a/docs/GarbageCollection.rst +++ b/docs/GarbageCollection.rst @@ -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()); |