summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-25 21:21:08 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-25 21:21:08 +0000
commitb2561029b1fedabe306a2f792c3010b1076b77ba (patch)
treed15895aec748429f95413bf8318472e98bfc444f /llvm/lib/MC/MCMachOStreamer.cpp
parente96fd5a4fe370ef61512289b17194134cf948529 (diff)
downloadbcm5719-llvm-b2561029b1fedabe306a2f792c3010b1076b77ba.tar.gz
bcm5719-llvm-b2561029b1fedabe306a2f792c3010b1076b77ba.zip
Add a missing enumerator to this switch. Currently its in the
assert-path code, as previously we would have fallen off the end of the function, but please review and let me know if this should go somewhere else. This fixes a Clang warning: lib/MC/MCMachOStreamer.cpp:201:11: error: enumeration value 'MCSA_IndirectSymbol' not handled in switch [-Werror,-Wswitch-enum] switch (Attribute) { ^ 1 error generated. llvm-svn: 135976
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 6dc82d15474..2f775196234 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -208,6 +208,7 @@ void MCMachOStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
case MCSA_ELF_TypeNoType:
case MCSA_ELF_TypeGnuUniqueObject:
case MCSA_Hidden:
+ case MCSA_IndirectSymbol:
case MCSA_Internal:
case MCSA_Protected:
case MCSA_Weak:
OpenPOWER on IntegriCloud