summaryrefslogtreecommitdiff
path: root/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
commit36a321160e61149088f306c3605a9ad5fdd67e0a (patch)
treead9103c2b51b1516e59a82ee64d0d356f638a213 /test/DebugInfo
parente4d0a5ec1841ac5a407c3a07b62749923dda74c2 (diff)
downloadllvm-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 'test/DebugInfo')
-rw-r--r--test/DebugInfo/global.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/DebugInfo/global.ll b/test/DebugInfo/global.ll
index c515114fd5..3c97f0cb22 100644
--- a/test/DebugInfo/global.ll
+++ b/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() {