pzheng updated this revision to Diff 278361. pzheng added a comment. Add target triple used in test
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D83648/new/ https://reviews.llvm.org/D83648 Files: clang/include/clang/Driver/Options.td clang/test/Driver/integrated-as.c Index: clang/test/Driver/integrated-as.c =================================================================== --- clang/test/Driver/integrated-as.c +++ clang/test/Driver/integrated-as.c @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s // CHECK: cc1as @@ -7,6 +8,10 @@ // FIAS: cc1as +// RUN: %clang -target x86_64 -### -fintegrated-as %s 2>&1 | FileCheck %s -check-prefix FIAS-LINK + +// FIAS-LINK-NOT: -fintegrated-as + // RUN: %clang -target none -### -fno-integrated-as -S %s 2>&1 \ // RUN: | FileCheck %s -check-prefix NOFIAS Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -2887,7 +2887,7 @@ MetaVarName<"<language>">; def y : Joined<["-"], "y">; -defm integrated_as : OptOutFFlag<"integrated-as", "Enable the integrated assembler", "Disable the integrated assembler">; +defm integrated_as : OptOutFFlag<"integrated-as", "Enable", "Disable", " the integrated assembler", [DriverOption]>; def fintegrated_cc1 : Flag<["-"], "fintegrated-cc1">, Flags<[CoreOption, DriverOption]>, Group<f_Group>,
Index: clang/test/Driver/integrated-as.c =================================================================== --- clang/test/Driver/integrated-as.c +++ clang/test/Driver/integrated-as.c @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s // CHECK: cc1as @@ -7,6 +8,10 @@ // FIAS: cc1as +// RUN: %clang -target x86_64 -### -fintegrated-as %s 2>&1 | FileCheck %s -check-prefix FIAS-LINK + +// FIAS-LINK-NOT: -fintegrated-as + // RUN: %clang -target none -### -fno-integrated-as -S %s 2>&1 \ // RUN: | FileCheck %s -check-prefix NOFIAS Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -2887,7 +2887,7 @@ MetaVarName<"<language>">; def y : Joined<["-"], "y">; -defm integrated_as : OptOutFFlag<"integrated-as", "Enable the integrated assembler", "Disable the integrated assembler">; +defm integrated_as : OptOutFFlag<"integrated-as", "Enable", "Disable", " the integrated assembler", [DriverOption]>; def fintegrated_cc1 : Flag<["-"], "fintegrated-cc1">, Flags<[CoreOption, DriverOption]>, Group<f_Group>,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits