More support
authorChris Lattner <sabre@nondot.org>
Mon, 2 Dec 2002 21:56:28 +0000 (21:56 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 2 Dec 2002 21:56:28 +0000 (21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4873 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineCodeEmitter.h

index 69eea5c972d5c0e19a172a69c52848736a5c8d2f..cddadb2661e69b0d49368eb1d8eff150cb024521 100644 (file)
@@ -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