OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c78ea3
)
[ORC] Add a const version of ThreadSafeModule::getModule().
author
Lang Hames
<lhames@gmail.com>
Fri, 28 Sep 2018 01:41:33 +0000
(
01:41
+0000)
committer
Lang 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
patch
|
blob
|
history
diff --git
a/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
b/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
index
d1a786c
..
b3897e5
100644
(file)
--- 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(); }