diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-05-23 04:23:06 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-05-23 04:23:06 +0000 |
| commit | 96fb9024f2353f2215549372a30faf445533879c (patch) | |
| tree | 1f0f5e17b3dd075a913d8fd01ec8c08ca88ceac7 /llvm/test | |
| parent | 0e57b91f9cee7c646416239d9becea8be4d0596f (diff) | |
| download | bcm5719-llvm-96fb9024f2353f2215549372a30faf445533879c.tar.gz bcm5719-llvm-96fb9024f2353f2215549372a30faf445533879c.zip | |
DebugInfo: Fix cross-CU references for scopes (and variables within those scopes) in abstract definitions of cross-CU inlined functions
Found by Adrian Prantl during post-commit review of r209335.
llvm-svn: 209498
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/DebugInfo/cross-cu-inlining.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/cross-cu-inlining.ll b/llvm/test/DebugInfo/cross-cu-inlining.ll index ae684ad507c..44a1a585069 100644 --- a/llvm/test/DebugInfo/cross-cu-inlining.ll +++ b/llvm/test/DebugInfo/cross-cu-inlining.ll @@ -27,6 +27,9 @@ ; CHECK-NEXT: DW_AT_abstract_origin {{.*}}[[ABS_FUNC:........]]) ; CHECK: DW_TAG_formal_parameter ; CHECK-NEXT: DW_AT_abstract_origin {{.*}}[[ABS_VAR:........]]) +; CHECK: 0x[[INT:.*]]: DW_TAG_base_type +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name {{.*}} "int" ; Check the abstract definition is in the 'b.cpp' CU and doesn't contain any ; concrete information (address range or variable location) @@ -35,6 +38,9 @@ ; CHECK: 0x[[ABS_FUNC]]: DW_TAG_subprogram ; CHECK-NOT: DW_AT_low_pc ; CHECK: 0x[[ABS_VAR]]: DW_TAG_formal_parameter +; CHECK-NOT: DW_TAG +; CHECK-NOT: DW_AT_location +; CHECK: DW_AT_type [DW_FORM_ref_addr] (0x00000000[[INT]]) ; CHECK-NOT: DW_AT_location ; Check the concrete out of line definition references the abstract and |

