summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineCodeEmitter.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-04-23 17:11:12 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-04-23 17:11:12 +0000
commitfd1bb8b97466b1d2dadbf2e5767809cc56815d47 (patch)
treee508e431726a27b3b3520e3c1aea8d70118a63dd /include/llvm/CodeGen/MachineCodeEmitter.h
parentca718e41cf77880b68790e010868917338665444 (diff)
downloadllvm-fd1bb8b97466b1d2dadbf2e5767809cc56815d47.tar.gz
llvm-fd1bb8b97466b1d2dadbf2e5767809cc56815d47.tar.bz2
llvm-fd1bb8b97466b1d2dadbf2e5767809cc56815d47.tar.xz
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
Diffstat (limited to 'include/llvm/CodeGen/MachineCodeEmitter.h')
-rw-r--r--include/llvm/CodeGen/MachineCodeEmitter.h6
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.
///