From e3cf39c644b358676bdd2bfe485f02066041be6c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 28 Aug 2009 07:08:47 +0000 Subject: [PATCH] llvm-mc: .lsym is more unsupported than unimplemented, pending a use case appearing. Also, all one of the file level flags are implemented. llvm-svn: 80352 --- lib/MC/MCMachOStreamer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index e9722251c63..4ac0917bb03 100644 --- a/lib/MC/MCMachOStreamer.cpp +++ b/lib/MC/MCMachOStreamer.cpp @@ -170,13 +170,12 @@ void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) { void MCMachOStreamer::EmitAssemblerFlag(AssemblerFlag Flag) { switch (Flag) { - default: - llvm_unreachable("FIXME: Not yet implemented!"); - case SubsectionsViaSymbols: Assembler.setSubsectionsViaSymbols(true); - break; + return; } + + assert(0 && "invalid assembler flag!"); } void MCMachOStreamer::EmitAssignment(MCSymbol *Symbol, @@ -268,7 +267,8 @@ void MCMachOStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) { } void MCMachOStreamer::EmitLocalSymbol(MCSymbol *Symbol, const MCValue &Value) { - llvm_unreachable("FIXME: Not yet implemented!"); + // FIXME: Implement? + llvm_report_error("unsupported '.lsym' directive"); } void MCMachOStreamer::EmitCommonSymbol(MCSymbol *Symbol, unsigned Size,