1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

add a way to have multiple modules in a JIT :)

llvm-svn: 29723
This commit is contained in:
Chris Lattner 2006-08-16 02:53:27 +00:00
parent 7476a6c710
commit cccfd59edf

View File

@ -88,9 +88,15 @@ public:
ExecutionEngine(Module *M);
virtual ~ExecutionEngine();
//Module &getModule() const { return CurMod; }
const TargetData *getTargetData() const { return TD; }
/// addModuleProvider - Add a ModuleProvider to the list of modules that we
/// can JIT from. Note that this takes ownership of the ModuleProvider: when
/// the ExecutionEngine is destroyed, it destroys the MP as well.
void addModuleProvider(ModuleProvider *P) {
Modules.push_back(P);
}
/// 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.