summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-10-06 23:02:06 +0000
committerLang Hames <lhames@gmail.com>2018-10-06 23:02:06 +0000
commitcb5702c3fd741b9311bab7d9cce7cea39fc7ae42 (patch)
treefcddb2ce1cddf22b3b713a4c2dd903cb8434c7a3 /llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
parent9fa1c66421666df6dce6da3a05524b5d60229be9 (diff)
downloadbcm5719-llvm-cb5702c3fd741b9311bab7d9cce7cea39fc7ae42.tar.gz
bcm5719-llvm-cb5702c3fd741b9311bab7d9cce7cea39fc7ae42.zip
[ORC] Pass symbol name to discard by const reference.
This saves some unnecessary atomic ref-counting operations. llvm-svn: 343927
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp b/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
index 72db80bea87..0d8049178b5 100644
--- a/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
@@ -187,7 +187,7 @@ void LazyReexportsMaterializationUnit::materialize(
}
void LazyReexportsMaterializationUnit::discard(const JITDylib &JD,
- SymbolStringPtr Name) {
+ const SymbolStringPtr &Name) {
assert(CallableAliases.count(Name) &&
"Symbol not covered by this MaterializationUnit");
CallableAliases.erase(Name);
OpenPOWER on IntegriCloud