diff options
author | Eric Christopher <echristo@gmail.com> | 2016-10-14 05:45:46 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2016-10-14 05:45:46 +0000 |
commit | c675e3184ba3acc44814c8d858437a3df3b3fb60 (patch) | |
tree | 4bed8ddfb58175546b847f746096415ef77f98d4 /docs | |
parent | a91924b28ad6fee1c6d48067658772c06245d24b (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.rst | 2 |
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()); |