Simplify EmitLabel.

All the "real" streamers were already calling to MCStreamer::EmitLabel
to do part of the work.

llvm-svn: 211646
This commit is contained in:
Rafael Espindola 2014-06-24 23:54:40 +00:00
parent 2bce27e5a0
commit c607d8e7be
2 changed files with 1 additions and 6 deletions

View File

@ -653,7 +653,7 @@ namespace {
AddValueSymbols(Inst.getOperand(i).getExpr());
}
void EmitLabel(MCSymbol *Symbol) override {
Symbol->setSection(*getCurrentSection().first);
MCStreamer::EmitLabel(Symbol);
markDefined(*Symbol);
}
void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) override {

View File

@ -28,11 +28,6 @@ namespace {
const MCExpr *Subsection) override {
}
void EmitLabel(MCSymbol *Symbol) override {
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
assert(getCurrentSection().first &&"Cannot emit before setting section!");
AssignSection(Symbol, getCurrentSection().first);
}
void EmitAssemblerFlag(MCAssemblerFlag Flag) override {}
void EmitThumbFunc(MCSymbol *Func) override {}