From 837c110cb114a105fa0fe186fbb1ba542cc07601 Mon Sep 17 00:00:00 2001 From: Spyridoula Gravani Date: Thu, 29 Jun 2017 20:13:05 +0000 Subject: [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 --- llvm/test/DebugInfo/dwarfdump-accel.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/test/DebugInfo') 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. -- cgit v1.2.3