Correlate stubs with functions in JIT: when emitting a stub, the JIT tells the memory...
[oota-llvm.git] / include / llvm / ExecutionEngine / JITMemoryManager.h
index 7226496753683a5d043ceb650cf74bbcb2dd051c..0977d5640fa3f3d308f1069496cfcf473aeba560 100644 (file)
@@ -74,7 +74,8 @@ public:
   /// thunk for it.  The stub should be "close" to the current function body,
   /// but should not be included in the 'actualsize' returned by
   /// startFunctionBody.
-  virtual unsigned char *allocateStub(unsigned StubSize, unsigned Alignment) =0;
+  virtual unsigned char *allocateStub(const GlobalValue* F, unsigned StubSize,
+                                      unsigned Alignment) =0;
   
   
   /// endFunctionBody - This method is called when the JIT is done codegen'ing