diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-05-23 21:11:46 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-05-23 21:11:46 +0000 |
commit | 1288a3b8e63b7704f7b70ec64fdc3e31d7f09b91 (patch) | |
tree | 06bd58a2309da600eadeeef819659aa85ebd1b99 /test/DebugInfo/namespace.ll | |
parent | 3b39845adfcfff861198db9f8ef0267bcee44f0a (diff) | |
download | llvm-1288a3b8e63b7704f7b70ec64fdc3e31d7f09b91.tar.gz llvm-1288a3b8e63b7704f7b70ec64fdc3e31d7f09b91.tar.bz2 llvm-1288a3b8e63b7704f7b70ec64fdc3e31d7f09b91.tar.xz |
DebugInfo: Generalize some tests to handle variations in attribute ordering.
In an effort to fix inlined debug info in situations where the out of
line definition of a function preceeds any inlined usage, the order in
which some attributes are added to subprogram DIEs may change. (in
essence, definition-necessary attributes like DW_AT_low_pc/high_pc will
be added immediately, but the names, types, and other features will be
delayed to module end where they may either be added to the subprogram
DIE or instead reference an abstract definition for those values)
These tests can be generalized to be resilient to this change. 5 or so
tests actually have to be incompatibly changed to cope with this
reordering and will go along with the change that affects the order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/namespace.ll')
-rw-r--r-- | test/DebugInfo/namespace.ll | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/test/DebugInfo/namespace.ll b/test/DebugInfo/namespace.ll index 6af3dc3ddd..ca5cf808d1 100644 --- a/test/DebugInfo/namespace.ll +++ b/test/DebugInfo/namespace.ll @@ -17,11 +17,15 @@ ; CHECK-NEXT: DW_AT_name{{.*}}= "i" ; CHECK-NOT: NULL ; CHECK: DW_TAG_subprogram -; CHECK-NEXT: DW_AT_MIPS_linkage_name -; CHECK-NEXT: DW_AT_name{{.*}}= "f1" +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_MIPS_linkage_name +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name{{.*}}= "f1" ; CHECK: [[FUNC1:0x[0-9a-f]*]]:{{ *}}DW_TAG_subprogram -; CHECK-NEXT: DW_AT_MIPS_linkage_name -; CHECK-NEXT: DW_AT_name{{.*}}= "f1" +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_MIPS_linkage_name +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name{{.*}}= "f1" ; CHECK: NULL ; CHECK-NOT: NULL ; CHECK: [[FOO:0x[0-9a-f]*]]:{{ *}}DW_TAG_structure_type @@ -45,8 +49,10 @@ ; CHECK-NOT: NULL ; CHECK: DW_TAG_subprogram -; CHECK-NEXT: DW_AT_MIPS_linkage_name -; CHECK-NEXT: DW_AT_name{{.*}}= "func" +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_MIPS_linkage_name +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name{{.*}}= "func" ; CHECK-NOT: NULL ; CHECK: DW_TAG_imported_module ; CHECK-NEXT: DW_AT_decl_file{{.*}}(0x0[[F2]]) |