summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-19 17:15:36 +0000
committerAlp Toker <alp@nuanti.com>2014-06-19 17:15:36 +0000
commit660839f210b94c7677f7856139e6c95329ea1f32 (patch)
treee181ff89fe73462349ba75fd002df1802cb9fb7e /llvm/test/DebugInfo
parent37fcb5919d9c66bc29eeb8cffe2bb1773383b267 (diff)
downloadbcm5719-llvm-660839f210b94c7677f7856139e6c95329ea1f32.tar.gz
bcm5719-llvm-660839f210b94c7677f7856139e6c95329ea1f32.zip
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/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/global.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/global.ll b/llvm/test/DebugInfo/global.ll
index c515114fd50..3c97f0cb227 100644
--- a/llvm/test/DebugInfo/global.ll
+++ b/llvm/test/DebugInfo/global.ll
@@ -3,6 +3,9 @@
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s
+; Also test that the null streamer doesn't crash with debug info.
+; RUN: %llc_dwarf -O0 -filetype=null < %s
+
; generated from the following source compiled to bitcode with clang -g -O1
; static int i;
; int main() {
OpenPOWER on IntegriCloud