aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-02-05 23:46:32 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-02-05 23:46:32 +0000
commit3fe815d1256931a46df1f896b941805254b282dd (patch)
treed53977705c194735816ea812d666ffa92a8c5d7c /llvm/lib/LTO/LTO.cpp
parent372d4183cb9d9634d47b0660f0f8c3f58cdd8778 (diff)
downloadllvm-3fe815d1256931a46df1f896b941805254b282dd.zip
llvm-3fe815d1256931a46df1f896b941805254b282dd.tar.gz
llvm-3fe815d1256931a46df1f896b941805254b282dd.tar.bz2
LTO: Also include dso-local bit for calls in ThinLTO cache key.
Differential Revision: https://reviews.llvm.org/D42934 llvm-svn: 324291
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 02d1c75..177a70c 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -192,8 +192,10 @@ static void computeCacheKey(
UsedTypeIds.insert(TT.VFunc.GUID);
for (auto &TT : FS->type_checked_load_const_vcalls())
UsedTypeIds.insert(TT.VFunc.GUID);
- for (auto &ET : FS->calls())
+ for (auto &ET : FS->calls()) {
+ AddUnsigned(ET.first.isDSOLocal());
AddUsedCfiGlobal(ET.first.getGUID());
+ }
}
};