summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-02 21:56:28 +0000
committerChris Lattner <sabre@nondot.org>2002-12-02 21:56:28 +0000
commitf24e2a748fe3d2638b39817fc9610be0ec24f59d (patch)
tree8f6644a0563d8536dfed8b2bc81afd7d2d6d39e2
parent15fbd6166463ba63ebd61c4c239debaba372c778 (diff)
downloadbcm5719-llvm-f24e2a748fe3d2638b39817fc9610be0ec24f59d.tar.gz
bcm5719-llvm-f24e2a748fe3d2638b39817fc9610be0ec24f59d.zip
More support
llvm-svn: 4873
-rw-r--r--llvm/include/llvm/CodeGen/MachineCodeEmitter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineCodeEmitter.h b/llvm/include/llvm/CodeGen/MachineCodeEmitter.h
index 69eea5c972d..cddadb2661e 100644
--- a/llvm/include/llvm/CodeGen/MachineCodeEmitter.h
+++ b/llvm/include/llvm/CodeGen/MachineCodeEmitter.h
@@ -12,6 +12,7 @@
class MachineFunction;
class MachineBasicBlock;
+class Value;
struct MachineCodeEmitter {
@@ -32,7 +33,14 @@ struct MachineCodeEmitter {
/// emitByte - This callback is invoked when a byte needs to be written to the
/// output stream.
+ ///
virtual void emitByte(unsigned char B) {}
+
+ /// emitPCRelativeDisp - This callback is invoked when we need to write out a
+ /// PC relative displacement for the specified Value*. This is used for call
+ /// and jump instructions typically.
+ ///
+ virtual void emitPCRelativeDisp(Value *V) {}
};
#endif
OpenPOWER on IntegriCloud