diff options
| author | David Blaikie <dblaikie@gmail.com> | 2017-05-25 22:10:51 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2017-05-25 22:10:51 +0000 |
| commit | 9f8669461db2de41087a1d5b0563c32b9b8f0a92 (patch) | |
| tree | 62e28d1f74196ae771c38c7042b819355adc7a2c | |
| parent | 2f106b46903c7a8d1a5fc93427305ea651f83a4a (diff) | |
| download | bcm5719-llvm-9f8669461db2de41087a1d5b0563c32b9b8f0a92.tar.gz bcm5719-llvm-9f8669461db2de41087a1d5b0563c32b9b8f0a92.zip | |
Fix test to handle running on platforms which don't enable pubnames at all
Check that there are no entries in the pub sections, but that they may
either be not present or present-but-empty.
llvm-svn: 303927
| -rw-r--r-- | llvm/test/DebugInfo/Generic/empty.ll | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/test/DebugInfo/Generic/empty.ll b/llvm/test/DebugInfo/Generic/empty.ll index f8bc2c0f280..4c23300e3ed 100644 --- a/llvm/test/DebugInfo/Generic/empty.ll +++ b/llvm/test/DebugInfo/Generic/empty.ll @@ -13,14 +13,12 @@ ; CHECK-NOT: file_names[ ; CHECK: .debug_pubnames contents: -; CHECK-NEXT: length = 0x0000000e -; CHECK-NEXT: Offset -; CHECK-NEXT: {{^$}} +; CHECK-NOT: {{^}}0x ; CHECK: .debug_pubtypes contents: -; CHECK-NEXT: length = 0x0000000e -; CHECK-NEXT: Offset -; CHECK-NEXT: {{^$}} +; CHECK-NOT: {{^}}0x + +; CHECK: contents: ; Don't emit DW_AT_addr_base when there are no addresses. ; FISSION-NOT: DW_AT_GNU_addr_base [DW_FORM_sec_offset] |

