Skip to content

Commit

Permalink
Simplify EmitLabel.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
espindola committed Jun 24, 2014
1 parent 35a6a81 commit a68a4f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion lib/LTO/LTOModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 0 additions & 5 deletions lib/MC/MCNullStreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down

0 comments on commit a68a4f0

Please sign in to comment.