Add a new class useful for providing fully materialized modules to ExecutionEngine's

llvm-svn: 10645
This commit is contained in:
Chris Lattner 2003-12-30 02:44:04 +00:00
parent 1b921c486e
commit b9299236a8
1 changed files with 12 additions and 0 deletions

View File

@ -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