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

Chris Lattner lattner at cs.uiuc.edu
Thu May 8 16:55:01 PDT 2003


Changes in directory llvm/include/llvm/CodeGen:

MachineCodeEmitter.h updated: 1.6 -> 1.7

---
Log message:

Add new methods for stub generation


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.6 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.7
--- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.6	Sun Jan 12 18:14:55 2003
+++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h	Thu May  8 16:53:57 2003
@@ -39,6 +39,18 @@
   ///
   virtual void startBasicBlock(MachineBasicBlock &BB) {}
 
+  /// startFunctionStub - This callback is invoked when the JIT needs the
+  /// address of a function that has not been code generated yet.  The StubSize
+  /// specifies the total size required by the stub.  Stubs are not allowed to
+  /// have constant pools, the can only use the other emit* methods.
+  ///
+  virtual void startFunctionStub(Function &F, unsigned StubSize) {}
+
+  /// finishFunctionStub - This callback is invoked to terminate a function
+  /// stub.
+  ///
+  virtual void finishFunctionStub(Function &F) {}
+
   /// emitByte - This callback is invoked when a byte needs to be written to the
   /// output stream.
   ///





More information about the llvm-commits mailing list