From: Brian Gaeke Date: Fri, 23 Apr 2004 17:11:12 +0000 (+0000) Subject: Add emitWordAt() - a quick and dirty interface that the machine-dependent X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fd1bb8b97466b1d2dadbf2e5767809cc56815d47;p=oota-llvm.git Add emitWordAt() - a quick and dirty interface that the machine-dependent emitters can use to emit "relocations". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13116 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineCodeEmitter.h b/include/llvm/CodeGen/MachineCodeEmitter.h index 2d01f45d702..a46a2c5b59e 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. ///