Skip to content

Commit 57b3121

Browse files
committed
design review: remove _ + joined versions
1 parent 34c9646 commit 57b3121

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9297,8 +9297,11 @@ def fdx_rootsig_ver :
92979297
NormalizedValuesScope<"llvm::dxbc::RootSignatureVersion">,
92989298
NormalizedValues<["V1_0", "V1_1"]>,
92999299
MarshallingInfoEnum<LangOpts<"HLSLRootSigVer">, "V1_1">;
9300-
def dxc_rootsig_ver : DXCJoinedOrSeparate<"force-rootsig-ver">, Alias<fdx_rootsig_ver>;
9301-
def dxc_rootsig_ver_ : DXCJoinedOrSeparate<"force_rootsig_ver">, Alias<fdx_rootsig_ver>;
9300+
def dxc_rootsig_ver :
9301+
Separate<["/", "-"], "force-rootsig-ver">,
9302+
Alias<fdx_rootsig_ver>,
9303+
Group<dxc_Group>,
9304+
Visibility<[DXCOption]>;
93029305
def hlsl_entrypoint : Option<["-"], "hlsl-entry", KIND_SEPARATE>,
93039306
Group<dxc_Group>,
93049307
Visibility<[ClangOption, CC1Option]>,

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ HLSLToolChain::TranslateArgs(const DerivedArgList &Args, StringRef BoundArch,
295295
A->claim();
296296
continue;
297297
}
298-
if (A->getOption().getID() == options::OPT_dxc_rootsig_ver ||
299-
A->getOption().getID() == options::OPT_dxc_rootsig_ver_) {
298+
if (A->getOption().getID() == options::OPT_dxc_rootsig_ver) {
300299
DAL->AddJoinedArg(nullptr, Opts.getOption(options::OPT_fdx_rootsig_ver),
301300
A->getValue());
302301
A->claim();

clang/test/Driver/dxc_hlsl-rootsig-ver.hlsl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
// RUN: %clang_dxc -T cs_6_0 -fcgl -force-rootsig-ver rootsig_1_0 %s | FileCheck %s --check-prefix=CHECK-V1_0
44
// RUN: %clang_dxc -T cs_6_0 -fcgl -force-rootsig-ver rootsig_1_1 %s | FileCheck %s --check-prefix=CHECK-V1_1
55

6-
// RUN: %clang_dxc -T cs_6_0 -fcgl -force_rootsig_ver rootsig_1_0 %s | FileCheck %s --check-prefix=CHECK-V1_0
7-
// RUN: %clang_dxc -T cs_6_0 -fcgl -force_rootsig_ver rootsig_1_1 %s | FileCheck %s --check-prefix=CHECK-V1_1
8-
9-
// RUN: %clang_dxc -T cs_6_0 -fcgl -force-rootsig-verrootsig_1_0 %s | FileCheck %s --check-prefix=CHECK-V1_0
10-
// RUN: %clang_dxc -T cs_6_0 -fcgl -force-rootsig-verrootsig_1_1 %s | FileCheck %s --check-prefix=CHECK-V1_1
11-
12-
// RUN: %clang_dxc -T cs_6_0 -fcgl -force_rootsig_verrootsig_1_0 %s | FileCheck %s --check-prefix=CHECK-V1_0
13-
// RUN: %clang_dxc -T cs_6_0 -fcgl -force_rootsig_verrootsig_1_1 %s | FileCheck %s --check-prefix=CHECK-V1_1
14-
156
// Test to demonstrate that we can specify the root-signature versions
167

178
// CHECK: !dx.rootsignatures = !{![[#EMPTY_ENTRY:]]}

0 commit comments

Comments
 (0)