From f12db8cf750bb16515ba635143ca34b0c012968a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=A4nitz?= Date: Sun, 2 Aug 2020 14:37:33 +0200 Subject: [ORC] cloneToNewContext() can work with a const-ref to ThreadSafeModule --- llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp') diff --git a/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp b/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp index 1f4e6f1..2e128dd 100644 --- a/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp +++ b/llvm/lib/ExecutionEngine/Orc/ThreadSafeModule.cpp @@ -15,7 +15,7 @@ namespace llvm { namespace orc { -ThreadSafeModule cloneToNewContext(ThreadSafeModule &TSM, +ThreadSafeModule cloneToNewContext(const ThreadSafeModule &TSM, GVPredicate ShouldCloneDef, GVModifier UpdateClonedDefSource) { assert(TSM && "Can not clone null module"); -- cgit v1.1