[llvm-commits] [llvm] r170383 - /llvm/trunk/lib/MC/MCPureStreamer.cpp
Reed Kotler
rkotler at mips.com
Mon Dec 17 15:41:45 PST 2012
Author: rkotler
Date: Mon Dec 17 17:41:45 2012
New Revision: 170383
URL: http://llvm.org/viewvc/llvm-project?rev=170383&view=rev
Log:
EmitDebugLabel should by default be the same as EmitLabel everywhere.
It must be explicity set in MCPureStreamer because otherwise it will
inherit incorrectly from the parent.
Modified:
llvm/trunk/lib/MC/MCPureStreamer.cpp
Modified: llvm/trunk/lib/MC/MCPureStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCPureStreamer.cpp?rev=170383&r1=170382&r2=170383&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCPureStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCPureStreamer.cpp Mon Dec 17 17:41:45 2012
@@ -37,6 +37,7 @@
virtual void InitSections();
virtual void EmitLabel(MCSymbol *Symbol);
+ virtual void EmitDebugLabel(MCSymbol *Symbol);
virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
uint64_t Size = 0, unsigned ByteAlignment = 0);
virtual void EmitBytes(StringRef Data, unsigned AddrSpace);
@@ -135,6 +136,10 @@
}
+void MCPureStreamer::EmitDebugLabel(MCSymbol *Symbol) {
+ EmitLabel(Symbol);
+}
+
void MCPureStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
uint64_t Size, unsigned ByteAlignment) {
report_fatal_error("not yet implemented in pure streamer");
More information about the llvm-commits
mailing list