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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-12-30 02:44:04 +00:00
parent b1f5cfe0c4
commit 6dea527b4a

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