summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-24 05:31:43 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-24 05:31:43 +0000
commitca2c54e04e7e2a7e59058d56c2f2bd6c2758c171 (patch)
treec5b4d24d35d29f6111c90e5b2fdf2eda8fb55058 /llvm/test/Bitcode
parent01b3a6184aae0b5ef1e2cccd4bb8da8d6a0df68a (diff)
downloadbcm5719-llvm-ca2c54e04e7e2a7e59058d56c2f2bd6c2758c171.tar.gz
bcm5719-llvm-ca2c54e04e7e2a7e59058d56c2f2bd6c2758c171.zip
Add "hasSection" flag in the Summary
Reviewers: tejohnson Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D19405 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 267329
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/thinlto-summary-section.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/thinlto-summary-section.ll b/llvm/test/Bitcode/thinlto-summary-section.ll
new file mode 100644
index 00000000000..82b6a109118
--- /dev/null
+++ b/llvm/test/Bitcode/thinlto-summary-section.ll
@@ -0,0 +1,11 @@
+; Check the linkage types in both the per-module and combined summaries.
+; RUN: opt -module-summary %s -o %t.o
+; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s
+; RUN: llvm-lto -thinlto -o %t2 %t.o
+; RUN: llvm-bcanalyzer -dump %t2.thinlto.bc | FileCheck %s --check-prefix=COMBINED
+
+; CHECK: <PERMODULE {{.*}} op1=16
+; COMBINED-DAG: <COMBINED {{.*}} op1=16
+define void @functionWithSection() section "some_section" {
+ ret void
+}
OpenPOWER on IntegriCloud