diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-01-05 21:39:33 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-01-05 21:39:33 +0000 |
commit | e302b6cb69e96b948101e1ab6c0476187c92ee84 (patch) | |
tree | 4ac4a0f132cabb70692f726022c6ed26f4503f8b /test/DebugInfo/2009-11-03-InsertExtractValue.ll | |
parent | 8b2bcf4f753be8100fc712d6267f38b21085fc13 (diff) | |
download | external_llvm-e302b6cb69e96b948101e1ab6c0476187c92ee84.zip external_llvm-e302b6cb69e96b948101e1ab6c0476187c92ee84.tar.gz external_llvm-e302b6cb69e96b948101e1ab6c0476187c92ee84.tar.bz2 |
Include access modifiers in subprogram metadata IR comment.
Based on code review feedback in r171604 from Chandler Carruth &
Eric Christopher.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/2009-11-03-InsertExtractValue.ll')
-rw-r--r-- | test/DebugInfo/2009-11-03-InsertExtractValue.ll | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/DebugInfo/2009-11-03-InsertExtractValue.ll b/test/DebugInfo/2009-11-03-InsertExtractValue.ll index 8782e44..933384a 100644 --- a/test/DebugInfo/2009-11-03-InsertExtractValue.ll +++ b/test/DebugInfo/2009-11-03-InsertExtractValue.ll @@ -1,11 +1,15 @@ ; RUN: llvm-as < %s | llvm-dis | FileCheck %s -!0 = metadata !{i32 42} +!dbg = !{!0} +!0 = metadata !{i32 786478, i32 0, metadata !1, metadata !"bar", metadata !"bar", metadata !"_ZN3foo3barEv", metadata !1, i32 3, metadata !"nard", i1 false, i1 false, i32 0, i32 0, null, i32 258, i1 false, null, null, i32 0, metadata !1, i32 3} +!1 = metadata !{i32 42} define <{i32, i32}> @f1() { -; CHECK: !dbgx !0 - %r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !0 -; CHECK: !dbgx !0 - %e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !0 +; CHECK: !dbgx !1 + %r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !1 +; CHECK: !dbgx !1 + %e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !1 ret <{ i32, i32 }> %r } + +; CHECK: [protected] |