Mercurial > hg > CbC > CbC_llvm
diff docs/GarbageCollection.rst @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | afa8332a0e37 |
children | c2174574ed3a |
line wrap: on
line diff
--- a/docs/GarbageCollection.rst Tue Jan 26 22:56:36 2016 +0900 +++ b/docs/GarbageCollection.rst Fri Nov 25 19:14:25 2016 +0900 @@ -204,7 +204,7 @@ Specifying GC code generation: ``gc "..."`` ------------------------------------------- -.. code-block:: llvm +.. code-block:: text define <returntype> @name(...) gc "name" { ... } @@ -1007,7 +1007,7 @@ 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());