summaryrefslogtreecommitdiffstats
path: root/llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-03-03 20:25:30 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-03-03 20:25:30 +0000
commit54a52b75693853162bdba607a70f3e5fecbffb80 (patch)
treeb5de602dec22eac4dd3f95f4cb8b59f77bd91027 /llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll
parent1e021a162ed10c6b832cbbdd829396d55a0a71c7 (diff)
downloadbcm5719-llvm-54a52b75693853162bdba607a70f3e5fecbffb80.tar.gz
bcm5719-llvm-54a52b75693853162bdba607a70f3e5fecbffb80.zip
LTO: Hash the set of imported symbols for each module.
This set may affect code generation and is sensitive to link order (and possibly in the future to the linker's choice of prevailing symbol), so we need to include it. Differential Revision: https://reviews.llvm.org/D30586 llvm-svn: 296907
Diffstat (limited to 'llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll')
-rw-r--r--llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll b/llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll
new file mode 100644
index 00000000000..58bfb39f9ee
--- /dev/null
+++ b/llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll
@@ -0,0 +1,11 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define void @f1() {
+ call void @linkonce_odr()
+ ret void
+}
+
+define linkonce_odr void @linkonce_odr() {
+ ret void
+}
OpenPOWER on IntegriCloud