// Check that the apple-names section is emitted on Darwin.
// Adapted from llvm/test/DebugInfo/X86/debugger-tune.ll
// RUN: %target-swiftc_driver -emit-object -g %s -o %t
// RUN: %llvm-dwarfdump -a %t | %FileCheck --check-prefix=CHECK-LLDB %s

// CHECK-LLDB-NOT: debug_pubnames
// CHECK-LLDB:     apple_names
// CHECK-LLDB-NOT: debug_pubnames

// REQUIRES: OS=macosx

// Check that the apple-names section is emitted on Darwin.
// Adapted from llvm/test/DebugInfo/X86/debugger-tune.ll
// RUN: %target-swiftc_driver -emit-object -g %s -o %t
// RUN: llvm-readobj -sections %t | %FileCheck --check-prefix=CHECK-LLDB %s

// CHECK-LLDB-NOT: debug_pubnames
// CHECK-LLDB:     apple_names
// CHECK-LLDB-NOT: debug_pubnames

// REQUIRES: OS=macosx

--- 
+++ 
@@ -1,7 +1,7 @@
 // Check that the apple-names section is emitted on Darwin.
 // Adapted from llvm/test/DebugInfo/X86/debugger-tune.ll
 // RUN: %target-swiftc_driver -emit-object -g %s -o %t
-// RUN: llvm-readobj -sections %t | %FileCheck --check-prefix=CHECK-LLDB %s
+// RUN: %llvm-dwarfdump -a %t | %FileCheck --check-prefix=CHECK-LLDB %s
 
 // CHECK-LLDB-NOT: debug_pubnames
 // CHECK-LLDB:     apple_names
Update test to use dwarfdump instead of readobj
