mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-13 07:50:41 +00:00
4544896cb9
Followup from r277778, after Mehdi's comments. Expand %ld64 to perform the necessary preload instead, that way new tests do not need to worry about setting up DYLD_INSERT_LIBRARIES themselves. rdar://problem/24300926 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277788 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
592 B
LLVM
21 lines
592 B
LLVM
; RUN: llvm-as %s -o %t.o
|
|
; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O0 -o %t.dylib %t.o
|
|
; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O0 %s
|
|
; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O2 -o %t.dylib %t.o
|
|
; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O2 %s
|
|
|
|
target triple = "x86_64-apple-macosx10.8.0"
|
|
|
|
; CHECK-O0: t _f1
|
|
; CHECK-O2-NOT: _f1
|
|
define internal void @f1() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK-O0: T _f2
|
|
; CHECK-O2: T _f2
|
|
define void @f2() {
|
|
call void @f1()
|
|
ret void
|
|
}
|