@@ -208,7 +208,6 @@ namespace sema {
208
208
class FunctionScopeInfo ;
209
209
class LambdaScopeInfo ;
210
210
class PossiblyUnreachableDiag ;
211
- class SemaPPCallbacks ;
212
211
class TemplateDeductionInfo ;
213
212
}
214
213
@@ -382,12 +381,11 @@ class Sema {
382
381
llvm::StringRef StackSlotLabel;
383
382
ValueType Value;
384
383
SourceLocation PragmaLocation;
385
- SourceLocation PragmaPushLocation;
386
- Slot (llvm::StringRef StackSlotLabel, ValueType Value,
387
- SourceLocation PragmaLocation, SourceLocation PragmaPushLocation)
388
- : StackSlotLabel(StackSlotLabel), Value(Value),
389
- PragmaLocation (PragmaLocation),
390
- PragmaPushLocation(PragmaPushLocation) {}
384
+ Slot (llvm::StringRef StackSlotLabel,
385
+ ValueType Value,
386
+ SourceLocation PragmaLocation)
387
+ : StackSlotLabel(StackSlotLabel), Value(Value),
388
+ PragmaLocation (PragmaLocation) {}
391
389
};
392
390
void Act (SourceLocation PragmaLocation,
393
391
PragmaMsStackAction Action,
@@ -418,8 +416,6 @@ class Sema {
418
416
explicit PragmaStack (const ValueType &Default)
419
417
: DefaultValue(Default), CurrentValue(Default) {}
420
418
421
- bool hasValue () const { return CurrentValue != DefaultValue; }
422
-
423
419
SmallVector<Slot, 2 > Stack;
424
420
ValueType DefaultValue; // Value used for PSK_Reset action.
425
421
ValueType CurrentValue;
@@ -441,8 +437,6 @@ class Sema {
441
437
// Sentinel to represent when the stack is set to mac68k alignment.
442
438
static const unsigned kMac68kAlignmentSentinel = ~0U ;
443
439
PragmaStack<unsigned > PackStack;
444
- // The current #pragma pack values and locations at each #include.
445
- SmallVector<std::pair<unsigned , SourceLocation>, 8 > PackIncludeStack;
446
440
// Segment #pragmas.
447
441
PragmaStack<StringLiteral *> DataSegStack;
448
442
PragmaStack<StringLiteral *> BSSSegStack;
@@ -8191,15 +8185,6 @@ class Sema {
8191
8185
void ActOnPragmaPack (SourceLocation PragmaLoc, PragmaMsStackAction Action,
8192
8186
StringRef SlotLabel, Expr *Alignment);
8193
8187
8194
- enum class PragmaPackDiagnoseKind {
8195
- NonDefaultStateAtInclude,
8196
- ChangedStateAtExit
8197
- };
8198
-
8199
- void DiagnoseNonDefaultPragmaPack (PragmaPackDiagnoseKind Kind,
8200
- SourceLocation IncludeLoc);
8201
- void DiagnoseUnterminatedPragmaPack ();
8202
-
8203
8188
// / ActOnPragmaMSStruct - Called on well formed \#pragma ms_struct [on|off].
8204
8189
void ActOnPragmaMSStruct (PragmaMSStructKind Kind);
8205
8190
@@ -10393,12 +10378,6 @@ class Sema {
10393
10378
10394
10379
IdentifierInfo *Ident_NSError = nullptr ;
10395
10380
10396
- // / \brief The handler for the FileChanged preprocessor events.
10397
- // /
10398
- // / Used for diagnostics that implement custom semantic analysis for #include
10399
- // / directives, like -Wpragma-pack.
10400
- sema::SemaPPCallbacks *SemaPPCallbackHandler;
10401
-
10402
10381
protected:
10403
10382
friend class Parser ;
10404
10383
friend class InitializationSequence ;
0 commit comments