diff options
author | Fangrui Song <maskray@google.com> | 2019-09-11 07:38:21 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-09-11 07:38:21 +0000 |
commit | 6b9df910d04fae62dacc22c1c84f66c0f126cde0 (patch) | |
tree | 0ead0af6855bc35d00a7687465d892c3084498b0 /llvm/lib/LTO/LTO.cpp | |
parent | c26b3940c3207597b98bbe5331b886155b4441a9 (diff) | |
download | llvm-6b9df910d04fae62dacc22c1c84f66c0f126cde0.zip llvm-6b9df910d04fae62dacc22c1c84f66c0f126cde0.tar.gz llvm-6b9df910d04fae62dacc22c1c84f66c0f126cde0.tar.bz2 |
[LTO] Avoid calling GlobalValue::getGUID (MD5) twice
llvm-svn: 371593
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index d6e7950..4696265 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -907,8 +907,7 @@ Error LTO::run(AddStreamFn AddStream, NativeObjectCache Cache) { GlobalValue::dropLLVMManglingEscape(Res.second.IRName)); if (Res.second.VisibleOutsideSummary && Res.second.Prevailing) - GUIDPreservedSymbols.insert(GlobalValue::getGUID( - GlobalValue::dropLLVMManglingEscape(Res.second.IRName))); + GUIDPreservedSymbols.insert(GUID); GUIDPrevailingResolutions[GUID] = Res.second.Prevailing ? PrevailingType::Yes : PrevailingType::No; |