Add a missing enumerator to this switch. Currently its in the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 25 Jul 2011 21:21:08 +0000 (21:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 25 Jul 2011 21:21:08 +0000 (21:21 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135976 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCMachOStreamer.cpp

index 6dc82d154741745e1918f4e7d8d1d0a1abc59954..2f7751962344d4f8974aea188d5d5e61b00c2199 100644 (file)
@@ -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: