diff options
author | Spyridoula Gravani <sgravani@apple.com> | 2017-06-29 20:13:05 +0000 |
---|---|---|
committer | Spyridoula Gravani <sgravani@apple.com> | 2017-06-29 20:13:05 +0000 |
commit | 837c110cb114a105fa0fe186fbb1ba542cc07601 (patch) | |
tree | 08b9cbd593afd619f85bfa155c3fd67260aac9c8 /llvm/test/DebugInfo/dwarfdump-accel.test | |
parent | 3f984ecb45d694727d1fb3522bf362e95028e231 (diff) | |
download | bcm5719-llvm-837c110cb114a105fa0fe186fbb1ba542cc07601.tar.gz bcm5719-llvm-837c110cb114a105fa0fe186fbb1ba542cc07601.zip |
[DWARF] Added verification checks for the .apple_names section.
This patch verifies the number of atoms, the validity of the form for each atom, as well as the validity of the
hashdata. For hashdata, we're verifying that the hashdata offset is correct and that the offset in the .debug_info for
each DIE in the hashdata is also valid.
llvm-svn: 306735
Diffstat (limited to 'llvm/test/DebugInfo/dwarfdump-accel.test')
-rw-r--r-- | llvm/test/DebugInfo/dwarfdump-accel.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/dwarfdump-accel.test b/llvm/test/DebugInfo/dwarfdump-accel.test index c6a971a2b9a..a49d024992c 100644 --- a/llvm/test/DebugInfo/dwarfdump-accel.test +++ b/llvm/test/DebugInfo/dwarfdump-accel.test @@ -1,4 +1,5 @@ RUN: llvm-dwarfdump %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s +RUN: llvm-dwarfdump -verify %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s --check-prefix=VERIFY Gather some DIE indexes to verify the accelerator table contents. CHECK: .debug_info contents @@ -63,3 +64,7 @@ CHECK-NOT: Name CHECK: {Atom[0]: [[READONLY]]} CHECK: {Atom[0]: [[ASSIGN]]} CHECK: {Atom[0]: [[SETASSIGN]]} + +Verify the debug info in the apple_names accelerator table. +VERIFY: Verifying .apple_names +VERIFY-NEXT: No errors. |