Skip to content

Commit f7d1510

Browse files
committed
[ORC] Add a const version of ThreadSafeModule::getModule().
llvm-svn: 343287
1 parent 28d596c commit f7d1510

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ class ThreadSafeModule {
126126
/// Get the module wrapped by this ThreadSafeModule.
127127
Module* getModule() { return M.get(); }
128128

129+
/// Get the module wrapped by this ThreadSafeModule.
130+
const Module* getModule() const { return M.get(); }
131+
129132
/// Take out a lock on the ThreadSafeContext for this module.
130133
ThreadSafeContext::Lock getContextLock() { return TSCtx.getLock(); }
131134

0 commit comments

Comments
 (0)