Skip to content

Commit f12db8c

Browse files
[ORC] cloneToNewContext() can work with a const-ref to ThreadSafeModule
1 parent 34a5669 commit f12db8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ using GVModifier = std::function<void(GlobalValue &)>;
162162

163163
/// Clones the given module on to a new context.
164164
ThreadSafeModule
165-
cloneToNewContext(ThreadSafeModule &TSMW,
165+
cloneToNewContext(const ThreadSafeModule &TSMW,
166166
GVPredicate ShouldCloneDef = GVPredicate(),
167167
GVModifier UpdateClonedDefSource = GVModifier());
168168

llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace llvm {
1616
namespace orc {
1717

18-
ThreadSafeModule cloneToNewContext(ThreadSafeModule &TSM,
18+
ThreadSafeModule cloneToNewContext(const ThreadSafeModule &TSM,
1919
GVPredicate ShouldCloneDef,
2020
GVModifier UpdateClonedDefSource) {
2121
assert(TSM && "Can not clone null module");

0 commit comments

Comments
 (0)