diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-19 17:15:36 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-19 17:15:36 +0000 |
commit | 660839f210b94c7677f7856139e6c95329ea1f32 (patch) | |
tree | e181ff89fe73462349ba75fd002df1802cb9fb7e /llvm/lib/MC/MCNullStreamer.cpp | |
parent | 37fcb5919d9c66bc29eeb8cffe2bb1773383b267 (diff) | |
download | llvm-660839f210b94c7677f7856139e6c95329ea1f32.zip llvm-660839f210b94c7677f7856139e6c95329ea1f32.tar.gz llvm-660839f210b94c7677f7856139e6c95329ea1f32.tar.bz2 |
MCNullStreamer: assign file IDs to resolve crashes and errors
Use the MCStreamer base implementations for file ID tracking instead of
overriding them as no-ops.
Avoids assertions when streaming Dwarf debug info, and fixes ASM parsing of loc
and file directives.
llvm-svn: 211282
Diffstat (limited to 'llvm/lib/MC/MCNullStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCNullStreamer.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/MC/MCNullStreamer.cpp b/llvm/lib/MC/MCNullStreamer.cpp index 4f2740e..5ab2829 100644 --- a/llvm/lib/MC/MCNullStreamer.cpp +++ b/llvm/lib/MC/MCNullStreamer.cpp @@ -81,15 +81,7 @@ namespace { unsigned char Value = 0) override { return false; } void EmitFileDirective(StringRef Filename) override {} - unsigned EmitDwarfFileDirective(unsigned FileNo, StringRef Directory, - StringRef Filename, - unsigned CUID = 0) override { - return 0; - } - void EmitDwarfLocDirective(unsigned FileNo, unsigned Line, - unsigned Column, unsigned Flags, - unsigned Isa, unsigned Discriminator, - StringRef FileName) override {} + void EmitInstruction(const MCInst &Inst, const MCSubtargetInfo&) override {} void EmitBundleAlignMode(unsigned AlignPow2) override {} |