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 | 36a321160e61149088f306c3605a9ad5fdd67e0a (patch) | |
tree | ad9103c2b51b1516e59a82ee64d0d356f638a213 /lib | |
parent | e4d0a5ec1841ac5a407c3a07b62749923dda74c2 (diff) | |
download | llvm-36a321160e61149088f306c3605a9ad5fdd67e0a.tar.gz llvm-36a321160e61149088f306c3605a9ad5fdd67e0a.tar.bz2 llvm-36a321160e61149088f306c3605a9ad5fdd67e0a.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCNullStreamer.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/MC/MCNullStreamer.cpp b/lib/MC/MCNullStreamer.cpp index 4f2740ed3a..5ab2829a6b 100644 --- a/lib/MC/MCNullStreamer.cpp +++ b/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 {} |