llvm.org GIT mirror llvm / 5c87418
Remove unused field MacroInstantiation::TheMacro. No behavior change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213874 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 6 years ago
1 changed file(s) with 6 addition(s) and 11 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 being instantiated.
83 const MCAsmMacro *TheMacro;
84
8582 /// The macro instantiation with substitutions.
8683 MemoryBuffer *Instantiation;
8784
9592 SMLoc ExitLoc;
9693
9794 public:
98 MacroInstantiation(const MCAsmMacro *M, SMLoc IL, int EB, SMLoc EL,
99 MemoryBuffer *I);
95 MacroInstantiation(SMLoc IL, int EB, SMLoc EL, MemoryBuffer *I);
10096 };
10197
10298 struct ParseStatementInfo {
18601856 return false;
18611857 }
18621858
1863 MacroInstantiation::MacroInstantiation(const MCAsmMacro *M, SMLoc IL, int EB,
1864 SMLoc EL, MemoryBuffer *I)
1865 : TheMacro(M), Instantiation(I), InstantiationLoc(IL), ExitBuffer(EB),
1866 ExitLoc(EL) {}
1859 MacroInstantiation::MacroInstantiation(SMLoc IL, int EB, SMLoc EL,
1860 MemoryBuffer *I)
1861 : Instantiation(I), InstantiationLoc(IL), ExitBuffer(EB), ExitLoc(EL) {}
18671862
18681863 static bool isOperator(AsmToken::TokenKind kind) {
18691864 switch (kind) {
21272122 // Create the macro instantiation object and add to the current macro
21282123 // instantiation stack.
21292124 MacroInstantiation *MI = new MacroInstantiation(
2130 M, NameLoc, CurBuffer, getTok().getLoc(), Instantiation);
2125 NameLoc, CurBuffer, getTok().getLoc(), Instantiation);
21312126 ActiveMacros.push_back(MI);
21322127
21332128 // Jump to the macro instantiation and prime the lexer.
42914286 // Create the macro instantiation object and add to the current macro
42924287 // instantiation stack.
42934288 MacroInstantiation *MI = new MacroInstantiation(
4294 M, DirectiveLoc, CurBuffer, getTok().getLoc(), Instantiation);
4289 DirectiveLoc, CurBuffer, getTok().getLoc(), Instantiation);
42954290 ActiveMacros.push_back(MI);
42964291
42974292 // Jump to the macro instantiation and prime the lexer.