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

Chris Lattner lattner at cs.uiuc.edu
Thu May 8 22:28:01 PDT 2003


Changes in directory llvm/include/llvm/CodeGen:

MachineCodeEmitter.h updated: 1.8 -> 1.9

---
Log message:

Allow const functions


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.8 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.9
--- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.8	Thu May  8 17:00:52 2003
+++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h	Thu May  8 22:27:28 2003
@@ -45,12 +45,12 @@
   /// 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) {}
+  virtual void startFunctionStub(const Function &F, unsigned StubSize) {}
 
   /// finishFunctionStub - This callback is invoked to terminate a function
   /// stub.
   ///
-  virtual void finishFunctionStub(Function &F) {}
+  virtual void *finishFunctionStub(const Function &F) { return 0; }
 
   /// emitByte - This callback is invoked when a byte needs to be written to the
   /// output stream.





More information about the llvm-commits mailing list