llvm.org GIT mirror llvm / 9f52e1d
Remove unused member variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215860 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
1 changed file(s) with 7 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
7979 /// \brief Helper class for storing information about an active macro
8080 /// instantiation.
8181 struct MacroInstantiation {
82 /// The macro instantiation with substitutions.
83 MemoryBuffer *Instantiation;
84
8582 /// The location of the instantiation.
8683 SMLoc InstantiationLoc;
8784
9592 size_t CondStackDepth;
9693
9794 public:
98 MacroInstantiation(SMLoc IL, int EB, SMLoc EL, MemoryBuffer *I,
95 MacroInstantiation(SMLoc IL, int EB, SMLoc EL, StringRef I,
9996 size_t CondStackDepth);
10097 };
10198
18651862 }
18661863
18671864 MacroInstantiation::MacroInstantiation(SMLoc IL, int EB, SMLoc EL,
1868 MemoryBuffer *I, size_t CondStackDepth)
1869 : Instantiation(I), InstantiationLoc(IL), ExitBuffer(EB), ExitLoc(EL),
1865 StringRef I, size_t CondStackDepth)
1866 : InstantiationLoc(IL), ExitBuffer(EB), ExitLoc(EL),
18701867 CondStackDepth(CondStackDepth) {}
18711868
18721869 static bool isOperator(AsmToken::TokenKind kind) {
21322129 // instantiation stack.
21332130 MacroInstantiation *MI =
21342131 new MacroInstantiation(NameLoc, CurBuffer, getTok().getLoc(),
2135 Instantiation, TheCondStack.size());
2132 Instantiation->getBuffer(), TheCondStack.size());
21362133 ActiveMacros.push_back(MI);
21372134
21382135 // Jump to the macro instantiation and prime the lexer.
2139 CurBuffer = SrcMgr.AddNewSourceBuffer(MI->Instantiation, SMLoc());
2136 CurBuffer = SrcMgr.AddNewSourceBuffer(Instantiation, SMLoc());
21402137 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
21412138 Lex();
21422139
43184315 // instantiation stack.
43194316 MacroInstantiation *MI =
43204317 new MacroInstantiation(DirectiveLoc, CurBuffer, getTok().getLoc(),
4321 Instantiation, TheCondStack.size());
4318 Instantiation->getBuffer(), TheCondStack.size());
43224319 ActiveMacros.push_back(MI);
43234320
43244321 // Jump to the macro instantiation and prime the lexer.
4325 CurBuffer = SrcMgr.AddNewSourceBuffer(MI->Instantiation, SMLoc());
4322 CurBuffer = SrcMgr.AddNewSourceBuffer(Instantiation, SMLoc());
43264323 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
43274324 Lex();
43284325 }