summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-10-14 05:45:46 +0000
committerEric Christopher <echristo@gmail.com>2016-10-14 05:45:46 +0000
commitc675e3184ba3acc44814c8d858437a3df3b3fb60 (patch)
tree4bed8ddfb58175546b847f746096415ef77f98d4 /docs
parenta91924b28ad6fee1c6d48067658772c06245d24b (diff)
Tidy up example of getting the pointer size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/GarbageCollection.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/GarbageCollection.rst b/docs/GarbageCollection.rst
index 81605bc2095..4ef174410b7 100644
--- a/docs/GarbageCollection.rst
+++ b/docs/GarbageCollection.rst
@@ -1007,7 +1007,7 @@ a realistic example:
void MyGCPrinter::finishAssembly(AsmPrinter &AP) {
MCStreamer &OS = AP.OutStreamer;
- unsigned IntPtrSize = AP.TM.getSubtargetImpl()->getDataLayout()->getPointerSize();
+ unsigned IntPtrSize = AP.getPointerSize();
// Put this in the data section.
OS.SwitchSection(AP.getObjFileLowering().getDataSection());