[llvm-commits] [llvm] r115143 - /llvm/trunk/lib/MC/MCMachOStreamer.cpp
Chandler Carruth
chandlerc at gmail.com
Thu Sep 30 03:59:51 PDT 2010
Author: chandlerc
Date: Thu Sep 30 05:59:51 2010
New Revision: 115143
URL: http://llvm.org/viewvc/llvm-project?rev=115143&view=rev
Log:
Silence a GCC warning about not handling all flags in this switch, we
specifically assert on unexpected flags.
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=115143&r1=115142&r2=115143&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Thu Sep 30 05:59:51 2010
@@ -158,9 +158,9 @@
case MCAF_SubsectionsViaSymbols:
getAssembler().setSubsectionsViaSymbols(true);
return;
+ default:
+ llvm_unreachable("invalid assembler flag!");
}
-
- assert(0 && "invalid assembler flag!");
}
void MCMachOStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
More information about the llvm-commits
mailing list