[llvm-commits] [llvm] r135976 - /llvm/trunk/lib/MC/MCMachOStreamer.cpp
Chandler Carruth
chandlerc at gmail.com
Mon Jul 25 14:21:08 PDT 2011
Author: chandlerc
Date: Mon Jul 25 16:21:08 2011
New Revision: 135976
URL: http://llvm.org/viewvc/llvm-project?rev=135976&view=rev
Log:
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.
Modified:
llvm/trunk/lib/MC/MCMachOStreamer.cpp
Modified: llvm/trunk/lib/MC/MCMachOStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCMachOStreamer.cpp?rev=135976&r1=135975&r2=135976&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Mon Jul 25 16:21:08 2011
@@ -208,6 +208,7 @@
case MCSA_ELF_TypeNoType:
case MCSA_ELF_TypeGnuUniqueObject:
case MCSA_Hidden:
+ case MCSA_IndirectSymbol:
case MCSA_Internal:
case MCSA_Protected:
case MCSA_Weak:
More information about the llvm-commits
mailing list