mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-17 23:44:43 +00:00
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:
parent
b1f5cfe0c4
commit
6dea527b4a
@ -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…
x
Reference in New Issue
Block a user