Comment and clarifying assert.
[oota-llvm.git] / include / llvm / ExecutionEngine / RuntimeDyld.h
index d0d7dd60db377ceb92a3326838e2d6f1b211aca9..724b9f09e0e5120f1b73bb525b5aec1ed5acc960 100644 (file)
@@ -53,6 +53,7 @@ class RuntimeDyld {
   // RuntimeDyldImpl is the actual class. RuntimeDyld is just the public
   // interface.
   RuntimeDyldImpl *Dyld;
+  RTDyldMemoryManager *MM;
 public:
   RuntimeDyld(RTDyldMemoryManager*);
   ~RuntimeDyld();
@@ -62,7 +63,11 @@ public:
   // be the address used for relocation (clients can copy the data around
   // and resolve relocatons based on where they put it).
   void *getSymbolAddress(StringRef Name);
-  void reassignSymbolAddress(StringRef Name, uint64_t Addr);
+  // Resolve the relocations for all symbols we currently know about.
+  void resolveRelocations();
+  // Change the address associated with a symbol when resolving relocations.
+  // Any relocations already associated with the symbol will be re-resolved.
+  void reassignSymbolAddress(StringRef Name, uint8_t *Addr);
   StringRef getErrorString();
 };