projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35355bb
)
Tidy up example of getting the pointer size.
author
Eric Christopher
<echristo@gmail.com>
Fri, 14 Oct 2016 05:45:46 +0000
(
05:45
+0000)
committer
Eric Christopher
<echristo@gmail.com>
Fri, 14 Oct 2016 05:45:46 +0000
(
05:45
+0000)
llvm-svn: 284201
llvm/docs/GarbageCollection.rst
patch
|
blob
|
history
diff --git
a/llvm/docs/GarbageCollection.rst
b/llvm/docs/GarbageCollection.rst
index
81605bc
..
4ef1744
100644
(file)
--- 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());