@@ -157,7 +157,7 @@ class PragmaCommentDecl final
157
157
SourceLocation CommentLoc,
158
158
PragmaMSCommentKind CommentKind,
159
159
StringRef Arg);
160
- static PragmaCommentDecl *CreateDeserialized (ASTContext &C, DeclID ID,
160
+ static PragmaCommentDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID,
161
161
unsigned ArgSize);
162
162
163
163
PragmaMSCommentKind getCommentKind () const { return CommentKind; }
@@ -192,7 +192,7 @@ class PragmaDetectMismatchDecl final
192
192
SourceLocation Loc, StringRef Name,
193
193
StringRef Value);
194
194
static PragmaDetectMismatchDecl *
195
- CreateDeserialized (ASTContext &C, DeclID ID, unsigned NameValueSize);
195
+ CreateDeserialized (ASTContext &C, GlobalDeclID ID, unsigned NameValueSize);
196
196
197
197
StringRef getName () const { return getTrailingObjects<char >(); }
198
198
StringRef getValue () const { return getTrailingObjects<char >() + ValueStart; }
@@ -518,7 +518,7 @@ class LabelDecl : public NamedDecl {
518
518
static LabelDecl *Create (ASTContext &C, DeclContext *DC,
519
519
SourceLocation IdentL, IdentifierInfo *II,
520
520
SourceLocation GnuLabelL);
521
- static LabelDecl *CreateDeserialized (ASTContext &C, DeclID ID);
521
+ static LabelDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
522
522
523
523
LabelStmt *getStmt () const { return TheStmt; }
524
524
void setStmt (LabelStmt *T) { TheStmt = T; }
@@ -581,7 +581,7 @@ class NamespaceDecl : public NamedDecl, public DeclContext,
581
581
IdentifierInfo *Id, NamespaceDecl *PrevDecl,
582
582
bool Nested);
583
583
584
- static NamespaceDecl *CreateDeserialized (ASTContext &C, DeclID ID);
584
+ static NamespaceDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
585
585
586
586
using redecl_range = redeclarable_base::redecl_range;
587
587
using redecl_iterator = redeclarable_base::redecl_iterator;
@@ -1146,7 +1146,7 @@ class VarDecl : public DeclaratorDecl, public Redeclarable<VarDecl> {
1146
1146
const IdentifierInfo *Id, QualType T,
1147
1147
TypeSourceInfo *TInfo, StorageClass S);
1148
1148
1149
- static VarDecl *CreateDeserialized (ASTContext &C, DeclID ID);
1149
+ static VarDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
1150
1150
1151
1151
SourceRange getSourceRange () const override LLVM_READONLY;
1152
1152
@@ -1728,7 +1728,7 @@ class ImplicitParamDecl : public VarDecl {
1728
1728
static ImplicitParamDecl *Create (ASTContext &C, QualType T,
1729
1729
ImplicitParamKind ParamKind);
1730
1730
1731
- static ImplicitParamDecl *CreateDeserialized (ASTContext &C, DeclID ID);
1731
+ static ImplicitParamDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
1732
1732
1733
1733
ImplicitParamDecl (ASTContext &C, DeclContext *DC, SourceLocation IdLoc,
1734
1734
const IdentifierInfo *Id, QualType Type,
@@ -1782,7 +1782,7 @@ class ParmVarDecl : public VarDecl {
1782
1782
TypeSourceInfo *TInfo, StorageClass S,
1783
1783
Expr *DefArg);
1784
1784
1785
- static ParmVarDecl *CreateDeserialized (ASTContext &C, DeclID ID);
1785
+ static ParmVarDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
1786
1786
1787
1787
SourceRange getSourceRange () const override LLVM_READONLY;
1788
1788
@@ -2178,7 +2178,7 @@ class FunctionDecl : public DeclaratorDecl,
2178
2178
bool hasWrittenPrototype, ConstexprSpecKind ConstexprKind,
2179
2179
Expr *TrailingRequiresClause);
2180
2180
2181
- static FunctionDecl *CreateDeserialized (ASTContext &C, DeclID ID);
2181
+ static FunctionDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
2182
2182
2183
2183
DeclarationNameInfo getNameInfo () const {
2184
2184
return DeclarationNameInfo (getDeclName (), getLocation (), DNLoc);
@@ -3136,7 +3136,7 @@ class FieldDecl : public DeclaratorDecl, public Mergeable<FieldDecl> {
3136
3136
TypeSourceInfo *TInfo, Expr *BW, bool Mutable,
3137
3137
InClassInitStyle InitStyle);
3138
3138
3139
- static FieldDecl *CreateDeserialized (ASTContext &C, DeclID ID);
3139
+ static FieldDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
3140
3140
3141
3141
// / Returns the index of this field within its record,
3142
3142
// / as appropriate for passing to ASTRecordLayout::getFieldOffset.
@@ -3311,7 +3311,7 @@ class EnumConstantDecl : public ValueDecl,
3311
3311
SourceLocation L, IdentifierInfo *Id,
3312
3312
QualType T, Expr *E,
3313
3313
const llvm::APSInt &V);
3314
- static EnumConstantDecl *CreateDeserialized (ASTContext &C, DeclID ID);
3314
+ static EnumConstantDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
3315
3315
3316
3316
const Expr *getInitExpr () const { return (const Expr*) Init; }
3317
3317
Expr *getInitExpr () { return (Expr*) Init; }
@@ -3357,7 +3357,7 @@ class IndirectFieldDecl : public ValueDecl,
3357
3357
QualType T,
3358
3358
llvm::MutableArrayRef<NamedDecl *> CH);
3359
3359
3360
- static IndirectFieldDecl *CreateDeserialized (ASTContext &C, DeclID ID);
3360
+ static IndirectFieldDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
3361
3361
3362
3362
using chain_iterator = ArrayRef<NamedDecl *>::const_iterator;
3363
3363
@@ -3542,7 +3542,7 @@ class TypedefDecl : public TypedefNameDecl {
3542
3542
static TypedefDecl *Create (ASTContext &C, DeclContext *DC,
3543
3543
SourceLocation StartLoc, SourceLocation IdLoc,
3544
3544
const IdentifierInfo *Id, TypeSourceInfo *TInfo);
3545
- static TypedefDecl *CreateDeserialized (ASTContext &C, DeclID ID);
3545
+ static TypedefDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
3546
3546
3547
3547
SourceRange getSourceRange () const override LLVM_READONLY;
3548
3548
@@ -3567,7 +3567,7 @@ class TypeAliasDecl : public TypedefNameDecl {
3567
3567
static TypeAliasDecl *Create (ASTContext &C, DeclContext *DC,
3568
3568
SourceLocation StartLoc, SourceLocation IdLoc,
3569
3569
const IdentifierInfo *Id, TypeSourceInfo *TInfo);
3570
- static TypeAliasDecl *CreateDeserialized (ASTContext &C, DeclID ID);
3570
+ static TypeAliasDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
3571
3571
3572
3572
SourceRange getSourceRange () const override LLVM_READONLY;
3573
3573
@@ -3977,7 +3977,7 @@ class EnumDecl : public TagDecl {
3977
3977
IdentifierInfo *Id, EnumDecl *PrevDecl,
3978
3978
bool IsScoped, bool IsScopedUsingClassTag,
3979
3979
bool IsFixed);
3980
- static EnumDecl *CreateDeserialized (ASTContext &C, DeclID ID);
3980
+ static EnumDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
3981
3981
3982
3982
// / Overrides to provide correct range when there's an enum-base specifier
3983
3983
// / with forward declarations.
@@ -4182,7 +4182,7 @@ class RecordDecl : public TagDecl {
4182
4182
static RecordDecl *Create (const ASTContext &C, TagKind TK, DeclContext *DC,
4183
4183
SourceLocation StartLoc, SourceLocation IdLoc,
4184
4184
IdentifierInfo *Id, RecordDecl* PrevDecl = nullptr );
4185
- static RecordDecl *CreateDeserialized (const ASTContext &C, DeclID ID);
4185
+ static RecordDecl *CreateDeserialized (const ASTContext &C, GlobalDeclID ID);
4186
4186
4187
4187
RecordDecl *getPreviousDecl () {
4188
4188
return cast_or_null<RecordDecl>(
@@ -4433,7 +4433,7 @@ class FileScopeAsmDecl : public Decl {
4433
4433
StringLiteral *Str, SourceLocation AsmLoc,
4434
4434
SourceLocation RParenLoc);
4435
4435
4436
- static FileScopeAsmDecl *CreateDeserialized (ASTContext &C, DeclID ID);
4436
+ static FileScopeAsmDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
4437
4437
4438
4438
SourceLocation getAsmLoc () const { return getLocation (); }
4439
4439
SourceLocation getRParenLoc () const { return RParenLoc; }
@@ -4469,7 +4469,7 @@ class TopLevelStmtDecl : public Decl, public DeclContext {
4469
4469
4470
4470
public:
4471
4471
static TopLevelStmtDecl *Create (ASTContext &C, Stmt *Statement);
4472
- static TopLevelStmtDecl *CreateDeserialized (ASTContext &C, DeclID ID);
4472
+ static TopLevelStmtDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
4473
4473
4474
4474
SourceRange getSourceRange () const override LLVM_READONLY;
4475
4475
Stmt *getStmt () { return Statement; }
@@ -4563,7 +4563,7 @@ class BlockDecl : public Decl, public DeclContext {
4563
4563
4564
4564
public:
4565
4565
static BlockDecl *Create (ASTContext &C, DeclContext *DC, SourceLocation L);
4566
- static BlockDecl *CreateDeserialized (ASTContext &C, DeclID ID);
4566
+ static BlockDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
4567
4567
4568
4568
SourceLocation getCaretLocation () const { return getLocation (); }
4569
4569
@@ -4717,7 +4717,7 @@ class CapturedDecl final
4717
4717
4718
4718
static CapturedDecl *Create (ASTContext &C, DeclContext *DC,
4719
4719
unsigned NumParams);
4720
- static CapturedDecl *CreateDeserialized (ASTContext &C, DeclID ID,
4720
+ static CapturedDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID,
4721
4721
unsigned NumParams);
4722
4722
4723
4723
Stmt *getBody () const override ;
@@ -4851,7 +4851,7 @@ class ImportDecl final : public Decl,
4851
4851
SourceLocation EndLoc);
4852
4852
4853
4853
// / Create a new, deserialized module import declaration.
4854
- static ImportDecl *CreateDeserialized (ASTContext &C, DeclID ID,
4854
+ static ImportDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID,
4855
4855
unsigned NumLocations);
4856
4856
4857
4857
// / Retrieve the module that was imported by the import declaration.
@@ -4892,7 +4892,7 @@ class ExportDecl final : public Decl, public DeclContext {
4892
4892
public:
4893
4893
static ExportDecl *Create (ASTContext &C, DeclContext *DC,
4894
4894
SourceLocation ExportLoc);
4895
- static ExportDecl *CreateDeserialized (ASTContext &C, DeclID ID);
4895
+ static ExportDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
4896
4896
4897
4897
SourceLocation getExportLoc () const { return getLocation (); }
4898
4898
SourceLocation getRBraceLoc () const { return RBraceLoc; }
@@ -4931,7 +4931,7 @@ class EmptyDecl : public Decl {
4931
4931
public:
4932
4932
static EmptyDecl *Create (ASTContext &C, DeclContext *DC,
4933
4933
SourceLocation L);
4934
- static EmptyDecl *CreateDeserialized (ASTContext &C, DeclID ID);
4934
+ static EmptyDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
4935
4935
4936
4936
static bool classof (const Decl *D) { return classofKind (D->getKind ()); }
4937
4937
static bool classofKind (Kind K) { return K == Empty; }
@@ -4957,7 +4957,7 @@ class HLSLBufferDecl final : public NamedDecl, public DeclContext {
4957
4957
bool CBuffer, SourceLocation KwLoc,
4958
4958
IdentifierInfo *ID, SourceLocation IDLoc,
4959
4959
SourceLocation LBrace);
4960
- static HLSLBufferDecl *CreateDeserialized (ASTContext &C, DeclID ID);
4960
+ static HLSLBufferDecl *CreateDeserialized (ASTContext &C, GlobalDeclID ID);
4961
4961
4962
4962
SourceRange getSourceRange () const override LLVM_READONLY {
4963
4963
return SourceRange (getLocStart (), RBraceLoc);
0 commit comments