summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
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
commit38b1ed8ce2b976bcd393f89d58dd6652b868c40c (patch)
tree099496817b2c161b676ffeca9b921e5eda38c6ee /llvm/lib/MC/MCMachOStreamer.cpp
parentc1679ecf3b42b9546dceda1dbafc011dc6add20a (diff)
downloadbcm5719-llvm-38b1ed8ce2b976bcd393f89d58dd6652b868c40c.tar.gz
bcm5719-llvm-38b1ed8ce2b976bcd393f89d58dd6652b868c40c.zip
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 llvm-svn: 135921
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 625b6665c53..6dc82d15474 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -207,7 +207,6 @@ void MCMachOStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
case MCSA_ELF_TypeCommon:
case MCSA_ELF_TypeNoType:
case MCSA_ELF_TypeGnuUniqueObject:
- case MCSA_IndirectSymbol:
case MCSA_Hidden:
case MCSA_Internal:
case MCSA_Protected:
OpenPOWER on IntegriCloud