blob: 5dcb171c17eac580698c392441a13e85bff99556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# REQUIRES: aarch64
# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o
# RUN: %lld -arch arm64 -lSystem -U _objc_msgSend -o %t.out %t.o
# RUN: llvm-nm %t.out | FileCheck %s
# RUN: %lld -arch arm64 -lSystem -U _objc_msgSend -dead_strip -o %t.out %t.o
# RUN: llvm-nm %t.out | FileCheck %s --check-prefix=DEAD
# CHECK: _foo
# CHECK: _objc_msgSend$length
# DEAD-NOT: _foo
# DEAD-NOT: _objc_msgSend$length
.section __TEXT,__text
.globl _foo
_foo:
bl _objc_msgSend$length
ret
.globl _main
_main:
ret
.subsections_via_symbols
|