[ORC] Add a const version of ThreadSafeModule::getModule().

llvm-svn: 343287
This commit is contained in:
Lang Hames 2018-09-28 01:41:33 +00:00
parent 28d596c3aa
commit f7d151069f
1 changed files with 3 additions and 0 deletions

View File

@ -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(); }