diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-16 14:54:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-16 14:54:39 +0000 |
commit | b665d79f14286304c34b97dc480591e106bcf6f5 (patch) | |
tree | b6a1cc072be0e0bd948894751d7f49165efc69fd /llvm/docs/CodeGenerator.rst | |
parent | 00eb07b7917bd6c7a5a58f5df92eb3b416c860ca (diff) | |
download | bcm5719-llvm-b665d79f14286304c34b97dc480591e106bcf6f5.tar.gz bcm5719-llvm-b665d79f14286304c34b97dc480591e106bcf6f5.zip |
Add more documentation about the TargetStreamer interface.
llvm-svn: 192796
Diffstat (limited to 'llvm/docs/CodeGenerator.rst')
-rw-r--r-- | llvm/docs/CodeGenerator.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/CodeGenerator.rst b/llvm/docs/CodeGenerator.rst index 4b992888115..c87a6286727 100644 --- a/llvm/docs/CodeGenerator.rst +++ b/llvm/docs/CodeGenerator.rst @@ -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 ----------------------- |