Add more documentation about the TargetStreamer interface.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Oct 2013 14:54:39 +0000 (14:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Oct 2013 14:54:39 +0000 (14:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192796 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CodeGenerator.rst

index 4b992888115172e43ca941b0247b9a627775b1a9..c87a6286727108290d24ffa32125f4018b5253b3 100644 (file)
@@ -643,6 +643,11 @@ inherit from it, a target object streamer and a target asm streamer. The target
 asm streamer just prints it (``emitFnStart -> .fnstrart``), and the object
 streamer implement the assembler logic for it.
 
+To make llvm use these classes, the target initialization must call
+TargetRegistry::RegisterAsmStreamer and TargetRegistry::RegisterMCObjectStreamer
+passing callbacks that allocate the corresponding target streamer and pass it
+to createAsmStreamer or to the appropriate object streamer constructor.
+
 The ``MCContext`` class
 -----------------------