@@ -147,7 +147,7 @@ bool RootSignatureParser::parseParam(ParamType Ref) {
147
147
[this ](uint32_t *X) -> bool {
148
148
return consumeExpectedToken (TokenKind::pu_equal,
149
149
diag::err_expected_after,
150
- CurToken.Kind ) ||
150
+ CurToken.TokKind ) ||
151
151
parseUIntParam (X);
152
152
},
153
153
},
@@ -167,14 +167,14 @@ bool RootSignatureParser::parseParams(
167
167
llvm::SmallDenseSet<TokenKind> Seen;
168
168
169
169
while (tryConsumeExpectedToken (Keywords)) {
170
- if (Seen.contains (CurToken.Kind )) {
170
+ if (Seen.contains (CurToken.TokKind )) {
171
171
getDiags ().Report (CurToken.TokLoc , diag::err_hlsl_rootsig_repeat_param)
172
- << CurToken.Kind ;
172
+ << CurToken.TokKind ;
173
173
return true ;
174
174
}
175
- Seen.insert (CurToken.Kind );
175
+ Seen.insert (CurToken.TokKind );
176
176
177
- if (parseParam (Params[CurToken.Kind ]))
177
+ if (parseParam (Params[CurToken.TokKind ]))
178
178
return true ;
179
179
180
180
if (!tryConsumeExpectedToken (TokenKind::pu_comma))
@@ -195,21 +195,21 @@ bool RootSignatureParser::parseParams(
195
195
}
196
196
197
197
bool RootSignatureParser::parseUIntParam (uint32_t *X) {
198
- assert (CurToken.Kind == TokenKind::pu_equal &&
198
+ assert (CurToken.TokKind == TokenKind::pu_equal &&
199
199
" Expects to only be invoked starting at given keyword" );
200
200
tryConsumeExpectedToken (TokenKind::pu_plus);
201
201
return consumeExpectedToken (TokenKind::int_literal, diag::err_expected_after,
202
- CurToken.Kind ) ||
202
+ CurToken.TokKind ) ||
203
203
handleUIntLiteral (X);
204
204
}
205
205
206
206
bool RootSignatureParser::parseRegister (Register *Register) {
207
207
assert (
208
- (CurToken.Kind == TokenKind::bReg || CurToken.Kind == TokenKind::tReg ||
209
- CurToken.Kind == TokenKind::uReg || CurToken.Kind == TokenKind::sReg ) &&
208
+ (CurToken.TokKind == TokenKind::bReg || CurToken.TokKind == TokenKind::tReg ||
209
+ CurToken.TokKind == TokenKind::uReg || CurToken.TokKind == TokenKind::sReg ) &&
210
210
" Expects to only be invoked starting at given keyword" );
211
211
212
- switch (CurToken.Kind ) {
212
+ switch (CurToken.TokKind ) {
213
213
default :
214
214
llvm_unreachable (" Switch for consumed token was not provided" );
215
215
case TokenKind::bReg:
0 commit comments