summaryrefslogtreecommitdiff
path: root/lib/MC/MCNullStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-16 21:20:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-16 21:20:32 +0000
commitaf6b5808756d6ce335df9eb158efa33894b401c4 (patch)
treea9ef8066cc4945aa0b1b591bed1ea1c2740c0c6f /lib/MC/MCNullStreamer.cpp
parent668ac2fdae69ed358ecf690d6a07428e5a9ee2f7 (diff)
downloadllvm-af6b5808756d6ce335df9eb158efa33894b401c4.tar.gz
llvm-af6b5808756d6ce335df9eb158efa33894b401c4.tar.bz2
llvm-af6b5808756d6ce335df9eb158efa33894b401c4.tar.xz
Add .loc methods to the streamer.
Next: Add support for the !HasDotLocAndDotFile case to the MCAsmStreamer and then switch codegen to use it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCNullStreamer.cpp')
-rw-r--r--lib/MC/MCNullStreamer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/MC/MCNullStreamer.cpp b/lib/MC/MCNullStreamer.cpp
index b95a4f663e..c781fe6562 100644
--- a/lib/MC/MCNullStreamer.cpp
+++ b/lib/MC/MCNullStreamer.cpp
@@ -83,7 +83,12 @@ namespace {
unsigned char Value = 0) {}
virtual void EmitFileDirective(StringRef Filename) {}
- virtual void EmitDwarfFileDirective(unsigned FileNo,StringRef Filename) {}
+ virtual bool EmitDwarfFileDirective(unsigned FileNo,StringRef Filename) {
+ return false;
+ }
+ virtual void EmitDwarfLocDirective(unsigned FileNo, unsigned Line,
+ unsigned Column, unsigned Flags,
+ unsigned Isa, unsigned Discriminator) {}
virtual void EmitInstruction(const MCInst &Inst) {}
virtual void Finish() {}