From db6a53450facdfead8b0c8d20cfa361a785945fd Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 14 Sep 2022 12:17:41 -0400 Subject: [PATCH] Revert "[test][clang] run test for lld emitting dwarf-aranages only if lld is presented" This reverts commit 44075cc34a9b373714b594964001ce283598eac1. Broke check-clang, see comments on https://reviews.llvm.org/D133841 --- clang/test/Driver/debug-options-lld.c | 12 ------------ clang/test/Driver/debug-options.c | 8 +++++++- 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 clang/test/Driver/debug-options-lld.c diff --git a/clang/test/Driver/debug-options-lld.c b/clang/test/Driver/debug-options-lld.c deleted file mode 100644 index a69ebe3b1b4c..000000000000 --- a/clang/test/Driver/debug-options-lld.c +++ /dev/null @@ -1,12 +0,0 @@ -// REQUIRES: lld -// Check that lld will emit dwarf aranges. - -// RUN: %clang -### -target x86_64-unknown-linux -c -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=GARANGE %s -// RUN: %clang -### -target x86_64-unknown-linux -flto -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LDGARANGE %s -// RUN: %clang -### -target x86_64-unknown-linux -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LDGARANGE %s -// RUN: %clang -### -target x86_64-unknown-linux -fuse-ld=lld -flto -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LLDGARANGE %s -// RUN: %clang -### -target x86_64-unknown-linux -fuse-ld=lld -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LLDGARANGE %s -// -// GARANGE-DAG: -generate-arange-section -// LDGARANGE-NOT: {{".*lld.*"}} {{.*}} "-generate-arange-section" -// LLDGARANGE: {{".*lld.*"}} {{.*}} "-generate-arange-section" diff --git a/clang/test/Driver/debug-options.c b/clang/test/Driver/debug-options.c index 04004716aa50..2da192d098e2 100644 --- a/clang/test/Driver/debug-options.c +++ b/clang/test/Driver/debug-options.c @@ -246,7 +246,11 @@ // RUN: %clang -### -c -glldb %s 2>&1 | FileCheck -check-prefix=NOPUB %s // RUN: %clang -### -c -glldb -gno-pubnames %s 2>&1 | FileCheck -check-prefix=NOPUB %s // -// RUN: %clang -### -c -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=GARANGE %s +// RUN: %clang -### -target x86_64-unknown-linux -c -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=GARANGE %s +// RUN: %clang -### -target x86_64-unknown-linux -flto -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LDGARANGE %s +// RUN: %clang -### -target x86_64-unknown-linux -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LDGARANGE %s +// RUN: %clang -### -target x86_64-unknown-linux -fuse-ld=lld -flto -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LLDGARANGE %s +// RUN: %clang -### -target x86_64-unknown-linux -fuse-ld=lld -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LLDGARANGE %s // // RUN: %clang -### -fdebug-types-section -target x86_64-unknown-linux %s 2>&1 \ // RUN: | FileCheck -check-prefix=FDTS %s @@ -371,6 +375,8 @@ // NORNGBSE-NOT: -fdebug-ranges-base-address // // GARANGE-DAG: -generate-arange-section +// LDGARANGE-NOT: {{".*lld.*"}} {{.*}} "-generate-arange-section" +// LLDGARANGE: {{".*lld.*"}} {{.*}} "-generate-arange-section" // // FDTS: "-mllvm" "-generate-type-units" // FDTSE: error: unsupported option '-fdebug-types-section' for target 'x86_64-apple-darwin'