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/test | |
| parent | 37fcb5919d9c66bc29eeb8cffe2bb1773383b267 (diff) | |
| download | bcm5719-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')
| -rw-r--r-- | llvm/test/DebugInfo/global.ll | 3 | ||||
| -rw-r--r-- | llvm/test/MC/AsmParser/directive_file.s | 1 | ||||
| -rw-r--r-- | llvm/test/MC/AsmParser/directive_line.s | 1 | ||||
| -rw-r--r-- | llvm/test/MC/AsmParser/directive_loc.s | 1 |
4 files changed, 6 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() { diff --git a/llvm/test/MC/AsmParser/directive_file.s b/llvm/test/MC/AsmParser/directive_file.s index 9b99e0f24e9..d7290ebe1db 100644 --- a/llvm/test/MC/AsmParser/directive_file.s +++ b/llvm/test/MC/AsmParser/directive_file.s @@ -1,4 +1,5 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s +# RUN: llvm-mc -triple i386-unknown-unknown %s -filetype=null .file "hello" .file 1 "worl\144" # "\144" is "d" diff --git a/llvm/test/MC/AsmParser/directive_line.s b/llvm/test/MC/AsmParser/directive_line.s index 94ce4460299..110b68a4621 100644 --- a/llvm/test/MC/AsmParser/directive_line.s +++ b/llvm/test/MC/AsmParser/directive_line.s @@ -1,4 +1,5 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s +# RUN: llvm-mc -triple i386-unknown-unknown %s -filetype=null # FIXME: Actually test the output. .line diff --git a/llvm/test/MC/AsmParser/directive_loc.s b/llvm/test/MC/AsmParser/directive_loc.s index cda9579fb27..404ebcecdd0 100644 --- a/llvm/test/MC/AsmParser/directive_loc.s +++ b/llvm/test/MC/AsmParser/directive_loc.s @@ -1,4 +1,5 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s +# RUN: llvm-mc -triple i386-unknown-unknown %s -filetype=null .file 1 "hello" # CHECK: .file 1 "hello" |

