Mehdi Amini | 059464f | 2016-04-24 03:18:01 +0000 | [diff] [blame^] | 1 | ;; RUN: opt -module-summary %s -o %t1.bc |
| 2 | ; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t1.bc |
| 3 | ; RUN: llvm-lto -thinlto-action=internalize -thinlto-index %t.index.bc %t1.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=REGULAR |
| 4 | ; RUN: llvm-lto -thinlto-action=internalize -thinlto-index %t.index.bc %t1.bc -o - --exported-symbol=foo | llvm-dis -o - | FileCheck %s --check-prefix=INTERNALIZE |
| 5 | |
| 6 | ; REGULAR: define void @foo |
| 7 | ; REGULAR: define void @bar |
| 8 | ; INTERNALIZE: define void @foo |
| 9 | ; INTERNALIZE: define internal void @bar |
| 10 | |
| 11 | target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" |
| 12 | target triple = "x86_64-apple-macosx10.11.0" |
| 13 | |
| 14 | define void @foo() { |
| 15 | ret void |
| 16 | } |
| 17 | define void @bar() { |
| 18 | ret void |
| 19 | } |