forked from OSchip/llvm-project
[ORC] Add a const version of ThreadSafeModule::getModule().
llvm-svn: 343287
This commit is contained in:
parent
28d596c3aa
commit
f7d151069f
|
@ -126,6 +126,9 @@ public:
|
|||
/// Get the module wrapped by this ThreadSafeModule.
|
||||
Module* getModule() { return M.get(); }
|
||||
|
||||
/// Get the module wrapped by this ThreadSafeModule.
|
||||
const Module* getModule() const { return M.get(); }
|
||||
|
||||
/// Take out a lock on the ThreadSafeContext for this module.
|
||||
ThreadSafeContext::Lock getContextLock() { return TSCtx.getLock(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue