void addModuleProvider(ModuleProvider *P) {
Modules.push_back(P);
}
-
+
+ /// removeModuleProvider - Remove a ModuleProvider from the list of modules.
+ /// Release module from ModuleProvider.
+ Module* removeModuleProvider(ModuleProvider *P, std::string *ErrInfo = 0);
+
/// FindFunctionNamed - Search all of the active modules to find the one that
/// defines FnName. This is very slow operation and shouldn't be used for
/// general code.
const GlobalValue *getGlobalValueAtAddress(void *Addr);
- void StoreValueToMemory(GenericValue Val, GenericValue *Ptr, const Type *Ty);
+ void StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, const Type *Ty);
void InitializeMemory(const Constant *Init, void *Addr);
/// recompileAndRelinkFunction - This method is used to force a function