diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineCodeEmitter.h')
-rw-r--r-- | include/llvm/CodeGen/MachineCodeEmitter.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h index 2d01f45d70..a46a2c5b59 100644 --- a/include/llvm/CodeGen/MachineCodeEmitter.h +++ b/include/llvm/CodeGen/MachineCodeEmitter.h @@ -63,6 +63,12 @@ struct MachineCodeEmitter { /// virtual void emitByte(unsigned char B) {} + /// emitWordAt - This callback is invoked when a word needs to be written to + /// the output stream at a different position than the current PC (for + /// instance, when performing relocations). + /// + virtual void emitWordAt(unsigned W, unsigned *Ptr) {} + /// emitWord - This callback is invoked when a word needs to be written to the /// output stream. /// |