diff --git a/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h b/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h index d1a786ceaae..b3897e50f43 100644 --- a/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h +++ b/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(); }