Extend RTDyld API to enable optionally precomputing the total amount of memory
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.h
index a458356fe4b4c135906b445eba6a7df5996b5fd7..09c1bae24e31f764983d39a1ae46cb291fc6a0bc 100644 (file)
@@ -45,6 +45,15 @@ public:
     return ClientMM->allocateDataSection(Size, Alignment,
                                          SectionID, SectionName, IsReadOnly);
   }
+  
+  virtual void reserveAllocationSpace(
+    uintptr_t CodeSize, uintptr_t DataSizeRO, uintptr_t DataSizeRW) {
+    return ClientMM->reserveAllocationSpace(CodeSize, DataSizeRO, DataSizeRW);
+  }
+  
+  virtual bool needsToReserveAllocationSpace() {
+    return ClientMM->needsToReserveAllocationSpace();
+  }
 
   virtual void notifyObjectLoaded(ExecutionEngine *EE,
                                   const ObjectImage *Obj) {