[llvm] r343287 - [ORC] Add a const version of ThreadSafeModule::getModule().
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 27 18:41:33 PDT 2018
Author: lhames
Date: Thu Sep 27 18:41:33 2018
New Revision: 343287
URL: http://llvm.org/viewvc/llvm-project?rev=343287&view=rev
Log:
[ORC] Add a const version of ThreadSafeModule::getModule().
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h?rev=343287&r1=343286&r2=343287&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h Thu Sep 27 18:41:33 2018
@@ -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(); }
More information about the llvm-commits
mailing list