aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/labels.s
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-09-07 17:25:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-09-07 17:25:13 +0000
commit39646d96e76aea5d20bffb386233a0dbb5932a21 (patch)
tree5de73a0fc45310a16dab5a01751ba4302b33a75a /test/MC/AsmParser/labels.s
parent8e70b5506ec0d7a6c2740bc89cd1b8f12a78b24f (diff)
downloadexternal_llvm-39646d96e76aea5d20bffb386233a0dbb5932a21.zip
external_llvm-39646d96e76aea5d20bffb386233a0dbb5932a21.tar.gz
external_llvm-39646d96e76aea5d20bffb386233a0dbb5932a21.tar.bz2
MC: Overhaul handling of .lcomm
- Darwin lied about not supporting .lcomm and turned it into zerofill in the asm parser. Push the zerofill-conversion down into macho-specific code. - This makes the tri-state LCOMMType enum superfluous, there are no targets without .lcomm. - Do proper error reporting when trying to use .lcomm with alignment on a target that doesn't support it. - .comm and .lcomm alignment was parsed in bytes on COFF, should be power of 2. - Fixes PR13755 (.lcomm crashes on ELF). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser/labels.s')
-rw-r--r--test/MC/AsmParser/labels.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/MC/AsmParser/labels.s b/test/MC/AsmParser/labels.s
index 5609175..6a9870b 100644
--- a/test/MC/AsmParser/labels.s
+++ b/test/MC/AsmParser/labels.s
@@ -41,7 +41,7 @@ foo:
// CHECK: .comm "a 6",1
.comm "a 6", 1
-// CHECK: .zerofill __DATA,__bss,"a 7",1,0
+// CHECK: .lcomm "a 7",1
.lcomm "a 7", 1
// FIXME: We don't bother to support .lsym.