summaryrefslogtreecommitdiff
path: root/lib/MC/MCPureStreamer.cpp
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2012-12-17 23:41:45 +0000
committerReed Kotler <rkotler@mips.com>2012-12-17 23:41:45 +0000
commit082b7e6d367df15abf604b91739bedafe6c84c17 (patch)
tree5a0c1e64f2c45e7ccd0c4168c118444abec6da77 /lib/MC/MCPureStreamer.cpp
parent14b8f79c26d4eda996b49e350df4591ff0bc2f09 (diff)
downloadllvm-082b7e6d367df15abf604b91739bedafe6c84c17.tar.gz
llvm-082b7e6d367df15abf604b91739bedafe6c84c17.tar.bz2
llvm-082b7e6d367df15abf604b91739bedafe6c84c17.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCPureStreamer.cpp')
-rw-r--r--lib/MC/MCPureStreamer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MC/MCPureStreamer.cpp b/lib/MC/MCPureStreamer.cpp
index 5529759637..ca559b7fe1 100644
--- a/lib/MC/MCPureStreamer.cpp
+++ b/lib/MC/MCPureStreamer.cpp
@@ -37,6 +37,7 @@ public:
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::EmitLabel(MCSymbol *Symbol) {
}
+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");