[debuginfo-tests] r325928 - [Darwin] Add a test to make sure clang emits __apple accelerator tables.

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 11:28:12 PST 2018



> On Feb 23, 2018, at 10:04 AM, Davide Italiano via llvm-commits <llvm-commits at lists.llvm.org> wrote:
> 
> Author: davide
> Date: Fri Feb 23 10:04:55 2018
> New Revision: 325928
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=325928&view=rev
> Log:
> [Darwin] Add a test to make sure clang emits __apple accelerator tables.
> 
> Added:
>    debuginfo-tests/trunk/apple-accel.cpp
> 
> Added: debuginfo-tests/trunk/apple-accel.cpp
> URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/apple-accel.cpp?rev=325928&view=auto
> ==============================================================================
> --- debuginfo-tests/trunk/apple-accel.cpp (added)
> +++ debuginfo-tests/trunk/apple-accel.cpp Fri Feb 23 10:04:55 2018
> @@ -0,0 +1,17 @@
> +// REQUIRES: system-darwin
> +// Test that clang produces the __apple accelerator tables,
> +// e.g., __apple_types, correctly.
> +// RUN: %clang %s %target_itanium_abi_host_triple -O0 -c -g -o %t-ex
This probably should hardcode -gdwarf-4, (and -gdwarf-2) since the plan is to retire these sections in DWARF v5.

-- adrian
> +// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
> +
> +int main (int argc, char const *argv[]) { return argc; }
> +
> +// CHECK: __debug_str
> +// CHECK-NEXT: __debug_abbrev
> +// CHECK-NEXT: __debug_info
> +// CHECK-NEXT: __debug_ranges
> +// CHECK-NEXT: __debug_macinfo
> +// CHECK-NEXT: __apple_names
> +// CHECK-NEXT: __apple_objc
> +// CHECK-NEXT: __apple_namespac
> +// CHECK-NEXT: __apple_types
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list