Skip to content

Commit a409514

Browse files
author
Finn Plummer
committed
rebase changes: update to build issue fixes
1 parent 4b359d5 commit a409514

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

clang/include/clang/Parse/ParseHLSLRootSignature.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ class RootSignatureParser {
8181
/// as the infastructure to do so in a declarative way.
8282
///
8383
/// For the example:
84-
/// SmallDenseMap<TokenKind, ParamType> Params = {
85-
/// TokenKind::bReg, &Clause.Register,
86-
/// TokenKind::kw_space, &Clause.Space
84+
/// SmallDenseMap<RootSignatureToken::Kind, ParamType> Params = {
85+
/// RootSignatureToken::Kind::bReg, &Clause.Register,
86+
/// RootSignatureToken::Kind::kw_space, &Clause.Space
8787
/// };
88-
/// SmallDenseSet<TokenKind> Mandatory = {
89-
/// TokenKind::bReg
88+
/// SmallDenseSet<RootSignatureToken::Kind> Mandatory = {
89+
/// RootSignatureToken::Kind::bReg
9090
/// };
9191
///
9292
/// We can read it is as:
@@ -98,8 +98,8 @@ class RootSignatureParser {
9898
///
9999
/// and 'bReg' must be specified
100100
bool parseParams(
101-
llvm::SmallDenseMap<TokenKind, llvm::hlsl::rootsig::ParamType> &Params,
102-
llvm::SmallDenseSet<TokenKind> &Mandatory);
101+
llvm::SmallDenseMap<RootSignatureToken::Kind, llvm::hlsl::rootsig::ParamType> &Params,
102+
llvm::SmallDenseSet<RootSignatureToken::Kind> &Mandatory);
103103

104104
/// Parameter parse methods corresponding to a ParamType
105105
bool parseUIntParam(uint32_t *X);

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ bool RootSignatureParser::parseParam(ParamType Ref) {
147147
[this](uint32_t *X) -> bool {
148148
return consumeExpectedToken(TokenKind::pu_equal,
149149
diag::err_expected_after,
150-
CurToken.Kind) ||
150+
CurToken.TokKind) ||
151151
parseUIntParam(X);
152152
},
153153
},
@@ -167,14 +167,14 @@ bool RootSignatureParser::parseParams(
167167
llvm::SmallDenseSet<TokenKind> Seen;
168168

169169
while (tryConsumeExpectedToken(Keywords)) {
170-
if (Seen.contains(CurToken.Kind)) {
170+
if (Seen.contains(CurToken.TokKind)) {
171171
getDiags().Report(CurToken.TokLoc, diag::err_hlsl_rootsig_repeat_param)
172-
<< CurToken.Kind;
172+
<< CurToken.TokKind;
173173
return true;
174174
}
175-
Seen.insert(CurToken.Kind);
175+
Seen.insert(CurToken.TokKind);
176176

177-
if (parseParam(Params[CurToken.Kind]))
177+
if (parseParam(Params[CurToken.TokKind]))
178178
return true;
179179

180180
if (!tryConsumeExpectedToken(TokenKind::pu_comma))
@@ -195,21 +195,21 @@ bool RootSignatureParser::parseParams(
195195
}
196196

197197
bool RootSignatureParser::parseUIntParam(uint32_t *X) {
198-
assert(CurToken.Kind == TokenKind::pu_equal &&
198+
assert(CurToken.TokKind == TokenKind::pu_equal &&
199199
"Expects to only be invoked starting at given keyword");
200200
tryConsumeExpectedToken(TokenKind::pu_plus);
201201
return consumeExpectedToken(TokenKind::int_literal, diag::err_expected_after,
202-
CurToken.Kind) ||
202+
CurToken.TokKind) ||
203203
handleUIntLiteral(X);
204204
}
205205

206206
bool RootSignatureParser::parseRegister(Register *Register) {
207207
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) &&
210210
"Expects to only be invoked starting at given keyword");
211211

212-
switch (CurToken.Kind) {
212+
switch (CurToken.TokKind) {
213213
default:
214214
llvm_unreachable("Switch for consumed token was not provided");
215215
case TokenKind::bReg:

0 commit comments

Comments
 (0)