mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
ca718e41cf
commit
fd1bb8b974
@ -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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user