diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h b/llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h index d1a786ceaae..b3897e50f43 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h @@ -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(); } |