[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeEmitter.h

Brian Gaeke gaeke at cs.uiuc.edu
Fri Apr 23 12:12:03 PDT 2004


Changes in directory llvm/include/llvm/CodeGen:

MachineCodeEmitter.h updated: 1.16 -> 1.17

---
Log message:

Add emitWordAt() - a quick and dirty interface that the machine-dependent
emitters can use to emit "relocations".


---
Diffs of the changes:  (+6 -0)

Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.16 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.17
--- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.16	Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h	Fri Apr 23 12:11:12 2004
@@ -63,6 +63,12 @@
   ///
   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.
   ///





More information about the llvm-commits mailing list