• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as %s -o %t.o
2; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O0 -o %t.dylib %t.o
3; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O0 %s
4; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O2 -o %t.dylib %t.o
5; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O2 %s
6
7target triple = "x86_64-apple-macosx10.8.0"
8
9; CHECK-O0: t _f1
10; CHECK-O2-NOT: _f1
11define internal void @f1() {
12  ret void
13}
14
15; CHECK-O0: T _f2
16; CHECK-O2: T _f2
17define void @f2() {
18  call void @f1()
19  ret void
20}
21