OSDN Git Service

[ORC] Add a const version of ThreadSafeModule::getModule().
authorLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 01:41:33 +0000 (01:41 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 01:41:33 +0000 (01:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343287 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h

index d1a786c..b3897e5 100644 (file)
@@ -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(); }