diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-04-17 03:41:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-04-17 03:41:36 +0000 |
commit | 2ca02c655d158b2c4aaf004c597073adf67b8967 (patch) | |
tree | 9148cb855724f7fc429cff42df73474384977034 /test/DebugInfo | |
parent | 98055c625ba149bf8f005d044f68fb199a3a0f83 (diff) | |
download | external_llvm-2ca02c655d158b2c4aaf004c597073adf67b8967.zip external_llvm-2ca02c655d158b2c4aaf004c597073adf67b8967.tar.gz external_llvm-2ca02c655d158b2c4aaf004c597073adf67b8967.tar.bz2 |
PR15149/r174304 improvement - print hex for unknown dwarf language codes & add a test case
CR feedback from Rafael Espindola and Paul Robinson.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/2010-03-19-DbgDeclare.ll | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/DebugInfo/2010-03-19-DbgDeclare.ll b/test/DebugInfo/2010-03-19-DbgDeclare.ll index 1f7a889..4f49103 100644 --- a/test/DebugInfo/2010-03-19-DbgDeclare.ll +++ b/test/DebugInfo/2010-03-19-DbgDeclare.ll @@ -1,12 +1,17 @@ -; RUN: llvm-as < %s | opt -verify -disable-output +; RUN: llvm-as < %s | opt -verify -S -asm-verbose | FileCheck %s + +; CHECK: lang 0x8001 define void @Foo(i32 %a, i32 %b) { entry: call void @llvm.dbg.declare(metadata !{i32* null}, metadata !1) ret void } - +!llvm.dbg.cu = !{!2} +!2 = metadata !{i32 786449, metadata !4, i32 32769, metadata !"clang version 3.3 ", i1 false, metadata !"", i32 0, metadata !3, metadata !3, metadata !3, metadata !3, metadata !""} ; [ DW_TAG_compile_unit ] [/usr/local/google/home/blaikie/dev/scratch/scratch.cpp] [lang 0x8001] +!3 = metadata !{} !0 = metadata !{i32 662302, i32 26, metadata !1, null} !1 = metadata !{i32 4, metadata !"foo"} +!4 = metadata !{metadata !"scratch.cpp", metadata !"/usr/local/google/home/blaikie/dev/scratch"} declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone |