Skip to content

Commit 25e727b

Browse files
committed
review: rename enum
1 parent 7113cd1 commit 25e727b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

clang/include/clang/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ class LangOptions : public LangOptionsBase {
626626

627627
/// The HLSL root signature version for dxil.
628628
llvm::dxbc::RootSignatureVersion HLSLRootSigVer =
629-
llvm::dxbc::RootSignatureVersion::rootsig_1_1;
629+
llvm::dxbc::RootSignatureVersion::V1_1;
630630

631631
// Indicates if the wasm-opt binary must be ignored in the case of a
632632
// WebAssembly target.

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9295,8 +9295,8 @@ def hlsl_rootsig_ver :
92959295
HelpText<"Root Signature Version">,
92969296
Values<"rootsig_1_0,rootsig_1_1">,
92979297
NormalizedValuesScope<"llvm::dxbc::RootSignatureVersion">,
9298-
NormalizedValues<["rootsig_1_0", "rootsig_1_1"]>,
9299-
MarshallingInfoEnum<LangOpts<"HLSLRootSigVer">, "rootsig_1_1">;
9298+
NormalizedValues<["V1_0", "V1_1"]>,
9299+
MarshallingInfoEnum<LangOpts<"HLSLRootSigVer">, "V1_1">;
93009300
def hlsl_entrypoint : Option<["-"], "hlsl-entry", KIND_SEPARATE>,
93019301
Group<dxc_Group>,
93029302
Visibility<[ClangOption, CC1Option]>,

clang/lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5878,7 +5878,7 @@ HLSLRootSignatureDecl *
58785878
HLSLRootSignatureDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) {
58795879
HLSLRootSignatureDecl *Result = new (C, ID) HLSLRootSignatureDecl(
58805880
nullptr, SourceLocation(), nullptr,
5881-
/*RootSigVer*/ llvm::dxbc::RootSignatureVersion::rootsig_1_0,
5881+
/*RootSigVer*/ llvm::dxbc::RootSignatureVersion::V1_1,
58825882
/*NumElems=*/0);
58835883
return Result;
58845884
}

clang/lib/AST/TextNodeDumper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,10 +3043,10 @@ void TextNodeDumper::VisitHLSLRootSignatureDecl(
30433043
dumpName(D);
30443044
OS << " version: ";
30453045
switch (D->getVersion()) {
3046-
case llvm::dxbc::RootSignatureVersion::rootsig_1_0:
3046+
case llvm::dxbc::RootSignatureVersion::V1_0:
30473047
OS << "1.0";
30483048
break;
3049-
case llvm::dxbc::RootSignatureVersion::rootsig_1_1:
3049+
case llvm::dxbc::RootSignatureVersion::V1_1:
30503050
OS << "1.1";
30513051
break;
30523052
}

llvm/include/llvm/BinaryFormat/DXContainer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ struct DescriptorRange : public v1::DescriptorRange {
747747

748748
// D3D_ROOT_SIGNATURE_VERSION
749749
enum class RootSignatureVersion {
750-
rootsig_1_0 = 0x1,
751-
rootsig_1_1 = 0x2,
750+
V1_0 = 0x1,
751+
V1_1 = 0x2,
752752
};
753753

754754
} // namespace dxbc

0 commit comments

Comments
 (0)