mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Simplify EmitLabel.
All the "real" streamers were already calling to MCStreamer::EmitLabel to do part of the work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35a6a81407
commit
a68a4f0fd5
@ -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…
x
Reference in New Issue
Block a user