summaryrefslogtreecommitdiff
path: root/lib/Object/RecordStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-02-10 15:13:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-02-10 15:13:12 +0000
commit940b0c036d390ebf57122da4e616bbcd48f5f4dd (patch)
treea202d9b8d28671f9e5480d6f90f48ccc913005cf /lib/Object/RecordStreamer.cpp
parente5cabf7c4ad614d4ea299b041c38a8bee994d6bb (diff)
Move some error handling down to MCStreamer.
This makes sure we get the same redefinition rules regardless of who is printing (asm parser, codegen) and to what (asm, obj). This fixes an unintentional regression in r293936. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/RecordStreamer.cpp')
-rw-r--r--lib/Object/RecordStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/RecordStreamer.cpp b/lib/Object/RecordStreamer.cpp
index 572b960bc85..da99b3fea00 100644
--- a/lib/Object/RecordStreamer.cpp
+++ b/lib/Object/RecordStreamer.cpp
@@ -82,7 +82,7 @@ void RecordStreamer::EmitInstruction(const MCInst &Inst,
MCStreamer::EmitInstruction(Inst, STI);
}
-void RecordStreamer::EmitLabel(MCSymbol *Symbol) {
+void RecordStreamer::EmitLabel(MCSymbol *Symbol, SMLoc Loc) {
MCStreamer::EmitLabel(Symbol);
markDefined(*Symbol);
}