Add a new class useful for providing fully materialized modules to ExecutionEngine's
llvm-svn: 10645
This commit is contained in:
parent
1b921c486e
commit
b9299236a8
|
@ -54,6 +54,18 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
/// ExistingModuleProvider - Allow conversion from a fully materialized Module
|
||||
/// into a ModuleProvider, allowing code that expects a ModuleProvider to work
|
||||
/// if we just have a Module. Note that the ModuleProvider takes ownership of
|
||||
/// the Module specified.
|
||||
struct ExistingModuleProvider : public ModuleProvider {
|
||||
ExistingModuleProvider(Module *M) {
|
||||
TheModule = M;
|
||||
}
|
||||
void materializeFunction(Function *F) {}
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue