Skip to content

Commit c97bb41

Browse files
author
joaosaffran
committed
removing version
1 parent 440871d commit c97bb41

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

llvm/lib/Target/DirectX/DXContainerGlobals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void DXContainerGlobals::addRootSignature(Module &M,
162162

163163
RootSignatureHeader RSH;
164164
RSH.Flags = MRS->Flags;
165-
RSH.Version = MRS->Version;
165+
166166
RSH.write(OS);
167167

168168
Constant *Constant =

llvm/lib/Target/DirectX/DXILRootSignature.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ static bool parseRootSignatureElement(ModuleRootSignature *MRS,
8080
return true;
8181
}
8282

83-
bool ModuleRootSignature::parse(int32_t Version, NamedMDNode *Root) {
84-
this->Version = Version;
83+
bool ModuleRootSignature::parse(NamedMDNode *Root) {
8584
bool HasError = false;
8685

8786
/** Root Signature are specified as following in the metadata:
@@ -127,7 +126,7 @@ ModuleRootSignature ModuleRootSignature::analyzeModule(Module &M) {
127126

128127
NamedMDNode *RootSignatureNode = M.getNamedMetadata("dx.rootsignatures");
129128
if (RootSignatureNode) {
130-
if (MRS.parse(1, RootSignatureNode))
129+
if (MRS.parse(RootSignatureNode))
131130
llvm_unreachable("Invalid Root Signature Metadata.");
132131
}
133132

llvm/lib/Target/DirectX/DXILRootSignature.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ enum class RootSignatureElementKind {
3030
};
3131

3232
struct ModuleRootSignature {
33-
uint32_t Version;
3433
uint32_t Flags;
3534

3635
ModuleRootSignature() = default;
3736

38-
bool parse(int32_t Version, NamedMDNode *Root);
37+
bool parse(NamedMDNode *Root);
3938

4039
static ModuleRootSignature analyzeModule(Module &M);
4140
};

0 commit comments

Comments
 (0)