Add removeModuleProvider()
[oota-llvm.git] / include / llvm / ExecutionEngine / ExecutionEngine.h
index ab2924ef294b358c1b408a3e0cfb73fd55aa519e..2a2fb7cb8c4bd92d4693205c9d4dfb0211e41f49 100644 (file)
@@ -97,7 +97,11 @@ public:
   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.
@@ -176,7 +180,7 @@ public:
   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