[debuginfo-tests] r338424 - [DWARF] Change a test to ensure the creation of a __debug_ranges section.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 6 21:50:30 PDT 2018
I wonder if this is portable between ELF and MachO situations. (I
wonder/don't know if comma is valid in an ELF section name, for instance)
Maybe a single inline function would be more clearly portable? Not sure.
On Tue, Jul 31, 2018 at 12:37 PM Wolfgang Pieb via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: wolfgangp
> Date: Tue Jul 31 12:37:29 2018
> New Revision: 338424
>
> URL: http://llvm.org/viewvc/llvm-project?rev=338424&view=rev
> Log:
> [DWARF] Change a test to ensure the creation of a __debug_ranges section.
>
> Reviewer: aprantl
>
> Modified:
> debuginfo-tests/trunk/apple-accel.cpp
>
> Modified: debuginfo-tests/trunk/apple-accel.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/apple-accel.cpp?rev=338424&r1=338423&r2=338424&view=diff
>
> ==============================================================================
> --- debuginfo-tests/trunk/apple-accel.cpp (original)
> +++ debuginfo-tests/trunk/apple-accel.cpp Tue Jul 31 12:37:29 2018
> @@ -8,6 +8,9 @@
> // RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-4 -O0 -c -g -o
> %t-ex
> // RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
>
> +// A function in a different section forces the compiler to create the
> +// __debug_ranges section.
> +__attribute__((section("1,__text_foo"))) void foo() {}
> int main (int argc, char const *argv[]) { return argc; }
>
> // CHECK: __debug_str
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180806/deaafeba/attachment.html>
More information about the llvm-commits
mailing list