summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-09-28 01:41:33 +0000
committerLang Hames <lhames@gmail.com>2018-09-28 01:41:33 +0000
commitf7d151069f108cfcb90e0b86b2dd98ce88a0871c (patch)
treeba7b1d4db65f5ad3c085c33d19cdedcfc0a81f3b /llvm
parent28d596c3aa42662980dd9282d14781729ea67049 (diff)
downloadbcm5719-llvm-f7d151069f108cfcb90e0b86b2dd98ce88a0871c.tar.gz
bcm5719-llvm-f7d151069f108cfcb90e0b86b2dd98ce88a0871c.zip
[ORC] Add a const version of ThreadSafeModule::getModule().
llvm-svn: 343287
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h3
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(); }
OpenPOWER on IntegriCloud