summaryrefslogtreecommitdiffstats
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
commitb2437da9688c2aa30f6a0a6c13d08b4245d5fce7 (patch)
treed39a0f17ed20608faaa9c387b290899d7aabb5dd
parent35355bb896a4b34c570fb9878401246725038c3f (diff)
downloadbcm5719-llvm-b2437da9688c2aa30f6a0a6c13d08b4245d5fce7.tar.gz
bcm5719-llvm-b2437da9688c2aa30f6a0a6c13d08b4245d5fce7.zip
Tidy up example of getting the pointer size.
llvm-svn: 284201
-rw-r--r--llvm/docs/GarbageCollection.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/GarbageCollection.rst b/llvm/docs/GarbageCollection.rst
index 81605bc2095..4ef174410b7 100644
--- a/llvm/docs/GarbageCollection.rst
+++ b/llvm/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());
OpenPOWER on IntegriCloud