Lines Matching refs:Stack
46 /// Stack - Entries in the #pragma pack stack, consisting of saved
48 stack_ty Stack;
60 Stack.push_back(PSE);
75 if (Stack.empty()) {
87 Alignment = Stack.back().Alignment;
88 Stack.pop_back();
95 for (unsigned i = Stack.size(); i != 0; ) {
97 if (Stack[i].Name == Name) {
99 Alignment = Stack[i].Alignment;
100 Stack.erase(Stack.begin() + i, Stack.end());
120 PragmaPackStack *Stack = static_cast<PragmaPackStack*>(PackContext);
123 if (unsigned Alignment = Stack->getAlignment()) {
338 Stack.push_back(Slot(StackSlotLabel, CurrentValue, CurrentPragmaLocation));
342 auto I = std::find_if(Stack.rbegin(), Stack.rend(),
345 if (I != Stack.rend()) {
348 Stack.erase(std::prev(I.base()), Stack.end());
350 } else if (!Stack.empty()) {
352 CurrentValue = Stack.back().Value;
353 CurrentPragmaLocation = Stack.back().PragmaLocation;
354 Stack.pop_back();
416 PragmaStack<StringLiteral *> *Stack =
422 if (Action & PSK_Pop && Stack->Stack.empty())
428 Stack->Act(PragmaLocation, Action, StackSlotLabel, SegmentName);
524 VisStack *Stack = static_cast<VisStack*>(VisContext);
525 unsigned rawType = Stack->back().first;
530 SourceLocation loc = Stack->back().second;
546 VisStack *Stack = static_cast<VisStack*>(S.VisContext);
547 Stack->push_back(std::make_pair(type, loc));
595 VisStack *Stack = static_cast<VisStack*>(VisContext);
597 const std::pair<unsigned, SourceLocation> *Back = &Stack->back();
605 Stack->pop_back();
606 Back = &Stack->back();
615 Stack->pop_back();
617 if (Stack->empty())