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 | a24cd7206d08372e453438222e33d1ebf7284579 (patch) | |
tree | bbe21033a60446597e68c24bc91ec708b0a09a6d | |
parent | 72a3ee742296aa68fda0118d0e1fa649be756938 (diff) | |
download | external_llvm-a24cd7206d08372e453438222e33d1ebf7284579.zip external_llvm-a24cd7206d08372e453438222e33d1ebf7284579.tar.gz external_llvm-a24cd7206d08372e453438222e33d1ebf7284579.tar.bz2 |
Add more documentation about the TargetStreamer interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192796 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/CodeGenerator.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/CodeGenerator.rst b/docs/CodeGenerator.rst index 4b99288..c87a628 100644 --- a/docs/CodeGenerator.rst +++ b/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 ----------------------- |