1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[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 1accc97014
commit 3c8d6a2f70

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