aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-28 22:49:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-28 22:49:15 +0000
commitc6cf43d25853efb4a6765954eda52a45998a47f2 (patch)
tree154af0ed2d8ee6851d48b983b2170362032061bf /test
parentcede7c05518b8eea67da7e48d0952cc485764737 (diff)
downloadexternal_llvm-c6cf43d25853efb4a6765954eda52a45998a47f2.zip
external_llvm-c6cf43d25853efb4a6765954eda52a45998a47f2.tar.gz
external_llvm-c6cf43d25853efb4a6765954eda52a45998a47f2.tar.bz2
MC: Add support for disabling "temporary label" behavior. Useful for debugging
on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/MachO/temp-labels.s33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/MC/MachO/temp-labels.s b/test/MC/MachO/temp-labels.s
new file mode 100644
index 0000000..b7382b7
--- /dev/null
+++ b/test/MC/MachO/temp-labels.s
@@ -0,0 +1,33 @@
+// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -L -o - | macho-dump --dump-section-data | FileCheck %s
+
+// CHECK: # Load Command 1
+// CHECK: (('command', 2)
+// CHECK: ('size', 24)
+// CHECK: ('symoff', 296)
+// CHECK: ('nsyms', 2)
+// CHECK: ('stroff', 328)
+// CHECK: ('strsize', 8)
+// CHECK: ('_string_data', '\x00_f0\x00L0\x00')
+// CHECK: ('_symbols', [
+// CHECK: # Symbol 0
+// CHECK: (('n_strx', 1)
+// CHECK: ('n_type', 0xe)
+// CHECK: ('n_sect', 1)
+// CHECK: ('n_desc', 0)
+// CHECK: ('n_value', 0)
+// CHECK: ('_string', '_f0')
+// CHECK: ),
+// CHECK: # Symbol 1
+// CHECK: (('n_strx', 5)
+// CHECK: ('n_type', 0xe)
+// CHECK: ('n_sect', 1)
+// CHECK: ('n_desc', 0)
+// CHECK: ('n_value', 4)
+// CHECK: ('_string', 'L0')
+// CHECK: ),
+// CHECK: ])
+// CHECK: ),
+_f0:
+ .long 0
+L0:
+ .long 0