nickdesaulniers created this revision. nickdesaulniers added reviewers: dblaikie, mschifer. Herald added a project: clang. Herald added a subscriber: cfe-commits. nickdesaulniers requested review of this revision.
Tests added in https://reviews.llvm.org/D80242 https://reviews.llvm.org/rGcbd8ec93709376fbf404c99f4eee399790e26db7 are failing on OSX due to missing target triple. http://green.lab.llvm.org/green/job/clang-stage1-RA/13460/consoleFull#-42777206a1ca8a51-895e-46c6-af87-ce24fa4cd561 Signed-off-by: Nick Desaulniers <ndesaulni...@google.com> Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D85565 Files: clang/test/CodeGen/debug-info-unused-types.c clang/test/CodeGen/debug-info-unused-types.cpp clang/test/Driver/debug-options.c Index: clang/test/Driver/debug-options.c =================================================================== --- clang/test/Driver/debug-options.c +++ clang/test/Driver/debug-options.c @@ -366,7 +366,7 @@ // RUN: | FileCheck -check-prefix=DEBUG_UNUSED_TYPES %s // DEBUG_UNUSED_TYPES: "-debug-info-kind=unused-types" // DEBUG_UNUSED_TYPES-NOT: "-debug-info-kind=limited" -// RUN: %clang -### -g -feliminate-unused-debug-types -c %s 2>&1 \ +// RUN: %clang -### -g -feliminate-unused-debug-types -c %s --target=x86_64-linux-gnu 2>&1 \ // RUN: | FileCheck -check-prefix=NO_DEBUG_UNUSED_TYPES %s // NO_DEBUG_UNUSED_TYPES: "-debug-info-kind=limited" // NO_DEBUG_UNUSED_TYPES-NOT: "-debug-info-kind=unused-types" Index: clang/test/CodeGen/debug-info-unused-types.cpp =================================================================== --- clang/test/CodeGen/debug-info-unused-types.cpp +++ clang/test/CodeGen/debug-info-unused-types.cpp @@ -1,8 +1,8 @@ -// RUN: %clangxx -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s -// RUN: %clangxx -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clangxx -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clangxx -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clangxx -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s +// RUN: %clangxx --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s using foo = int; class bar {}; enum class baz { BAZ }; Index: clang/test/CodeGen/debug-info-unused-types.c =================================================================== --- clang/test/CodeGen/debug-info-unused-types.c +++ clang/test/CodeGen/debug-info-unused-types.c @@ -1,8 +1,8 @@ -// RUN: %clang -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s -// RUN: %clang -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clang -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clang -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clang -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s +// RUN: %clang --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s typedef int my_int; struct foo {}; enum bar { BAR };
Index: clang/test/Driver/debug-options.c =================================================================== --- clang/test/Driver/debug-options.c +++ clang/test/Driver/debug-options.c @@ -366,7 +366,7 @@ // RUN: | FileCheck -check-prefix=DEBUG_UNUSED_TYPES %s // DEBUG_UNUSED_TYPES: "-debug-info-kind=unused-types" // DEBUG_UNUSED_TYPES-NOT: "-debug-info-kind=limited" -// RUN: %clang -### -g -feliminate-unused-debug-types -c %s 2>&1 \ +// RUN: %clang -### -g -feliminate-unused-debug-types -c %s --target=x86_64-linux-gnu 2>&1 \ // RUN: | FileCheck -check-prefix=NO_DEBUG_UNUSED_TYPES %s // NO_DEBUG_UNUSED_TYPES: "-debug-info-kind=limited" // NO_DEBUG_UNUSED_TYPES-NOT: "-debug-info-kind=unused-types" Index: clang/test/CodeGen/debug-info-unused-types.cpp =================================================================== --- clang/test/CodeGen/debug-info-unused-types.cpp +++ clang/test/CodeGen/debug-info-unused-types.cpp @@ -1,8 +1,8 @@ -// RUN: %clangxx -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s -// RUN: %clangxx -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clangxx -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clangxx -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clangxx -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s +// RUN: %clangxx --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clangxx --target=x86_64-linux-gnu -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s using foo = int; class bar {}; enum class baz { BAZ }; Index: clang/test/CodeGen/debug-info-unused-types.c =================================================================== --- clang/test/CodeGen/debug-info-unused-types.c +++ clang/test/CodeGen/debug-info-unused-types.c @@ -1,8 +1,8 @@ -// RUN: %clang -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s -// RUN: %clang -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clang -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clang -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s -// RUN: %clang -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck %s +// RUN: %clang --target=x86_64-linux-gnu -fno-eliminate-unused-debug-types -g1 -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -feliminate-unused-debug-types -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -g -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s +// RUN: %clang --target=x86_64-linux-gnu -emit-llvm -S -o - %s | FileCheck --check-prefix=NODBG %s typedef int my_int; struct foo {}; enum bar { BAR };
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits