diff options
author | Davide Italiano <davide@freebsd.org> | 2015-09-09 00:21:18 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2015-09-09 00:21:18 +0000 |
commit | 9a429b766f50805735f49fd7216fa3802bbf7ac4 (patch) | |
tree | 3b23a2c63331aecc47855ece66f26b324d551f8f /llvm/test/MC/MachO/linker-option-2.s | |
parent | ee381ffba4a1797a38115217c1540b5c3b8ea4e7 (diff) | |
download | bcm5719-llvm-9a429b766f50805735f49fd7216fa3802bbf7ac4.tar.gz bcm5719-llvm-9a429b766f50805735f49fd7216fa3802bbf7ac4.zip |
[llvm-readobj] MachO -- dump LinkerOptions load command.
Example output:
Linker Options {
Size: 32
Count: 2
Strings [
Value: -framework
Value: Cocoa
]
}
There were only two tests using this -- so I converted them as part of
this commit rather than separately.
Differential Revision: http://reviews.llvm.org/D12702
llvm-svn: 247106
Diffstat (limited to 'llvm/test/MC/MachO/linker-option-2.s')
-rw-r--r-- | llvm/test/MC/MachO/linker-option-2.s | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/llvm/test/MC/MachO/linker-option-2.s b/llvm/test/MC/MachO/linker-option-2.s index 15ce60e6ed4..415d02e536b 100644 --- a/llvm/test/MC/MachO/linker-option-2.s +++ b/llvm/test/MC/MachO/linker-option-2.s @@ -1,25 +1,18 @@ -// RUN: llvm-mc -n -triple x86_64-apple-darwin10 %s -filetype=obj | macho-dump | FileCheck %s - -// CHECK: ('load_commands_size', 120) -// CHECK: ('load_commands', [ -// CHECK: # Load Command 2 -// CHECK: (('command', 45) -// CHECK: ('size', 16) -// CHECK: ('count', 1) -// CHECK: ('_strings', [ -// CHECK: "a", -// CHECK: ]) -// CHECK: ), -// CHECK: # Load Command 3 -// CHECK: (('command', 45) -// CHECK: ('size', 16) -// CHECK: ('count', 2) -// CHECK: ('_strings', [ -// CHECK: "a", -// CHECK: "b", -// CHECK: ]) -// CHECK: ), -// CHECK: ]) +// RUN: llvm-mc -n -triple x86_64-apple-darwin10 %s -filetype=obj | llvm-readobj -macho-linker-options | FileCheck %s .linker_option "a" .linker_option "a", "b" + +// CHECK: Linker Options { +// CHECK: Size: 16 +// CHECK: Strings [ +// CHECK: Value: a +// CHECK: ] +// CHECK: } +// CHECK: Linker Options { +// CHECK: Size: 16 +// CHECK: Strings [ +// CHECK: Value: a +// CHECK: Value: b +// CHECK: ] +// CHECK: } |