summaryrefslogtreecommitdiff
path: root/docs/GarbageCollection.rst
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-18 16:17:27 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-18 16:17:27 +0000
commit67c32a98315f785a9ec9d531c1f571a0196c7463 (patch)
tree4abb9cbeecc7901726dd0b4a37369596c852e9ef /docs/GarbageCollection.rst
parent9f61947910e6ab40de38e6b4034751ef1513200f (diff)
Diffstat (limited to 'docs/GarbageCollection.rst')
-rw-r--r--docs/GarbageCollection.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/GarbageCollection.rst b/docs/GarbageCollection.rst
index dc6dab1d336cc..49d3496748e20 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());