summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-07-25 17:55:35 +0000
committerJim Grosbach <grosbach@apple.com>2011-07-25 17:55:35 +0000
commitf2a35fbd60fbb86465ad2fb4d801cd5c240decd7 (patch)
treeb91c60eeea29983a4339ad5d32fbe2225f511b9e /test/MC/AsmParser
parent5fe5203c23959658907c4b6388de6b14a2aba902 (diff)
downloadllvm-f2a35fbd60fbb86465ad2fb4d801cd5c240decd7.tar.gz
llvm-f2a35fbd60fbb86465ad2fb4d801cd5c240decd7.tar.bz2
llvm-f2a35fbd60fbb86465ad2fb4d801cd5c240decd7.tar.xz
Move some ELF directives into ELF asm parser.
The .local, .hidden, .internal, and .protected are not legal for all supported file formats (in particular, they're invalid for MachO). Move the parsing for them into the ELF assembly parser since that's the format they're for. Similarly, .weak is used by COFF and ELF, but not MachO, so move the parsing to the COFF and ELF asm parsers. Previously, using any of these directives on Darwin would result in an assertion failure in the parser; now we get a diagnostic as we should. rdar://9827089 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r--test/MC/AsmParser/labels.s3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/MC/AsmParser/labels.s b/test/MC/AsmParser/labels.s
index 3bc7e630ce..56091755d9 100644
--- a/test/MC/AsmParser/labels.s
+++ b/test/MC/AsmParser/labels.s
@@ -35,9 +35,6 @@ foo:
// CHECK: .globl "a 3"
.globl "a 3"
-// CHECK: .weak "a 4"
- .weak "a 4"
-
// CHECK: .desc "a 5",1
.desc "a 5", 1