forked from OSchip/llvm-project
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:
parent
2bce27e5a0
commit
c607d8e7be
|
@ -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 {
|
||||
|
|
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue