diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2014-07-24 16:29:04 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2014-07-24 16:29:04 +0000 |
| commit | 2a8f922b1c922afdc15328b7bd0a39ad30fdbaff (patch) | |
| tree | 1a221a48c5e4ad5e8bd782ea6b7c1e4be978cfad /llvm/lib/MC/MCParser | |
| parent | 404012b7dc10238bf5c0818420964c22aaf3c9ba (diff) | |
| download | bcm5719-llvm-2a8f922b1c922afdc15328b7bd0a39ad30fdbaff.tar.gz bcm5719-llvm-2a8f922b1c922afdc15328b7bd0a39ad30fdbaff.zip | |
Remove unused field MacroInstantiation::TheMacro. No behavior change.
llvm-svn: 213874
Diffstat (limited to 'llvm/lib/MC/MCParser')
| -rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index f1ec64c8a79..46225f1b33b 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -80,9 +80,6 @@ public: /// \brief Helper class for storing information about an active macro /// instantiation. struct MacroInstantiation { - /// The macro being instantiated. - const MCAsmMacro *TheMacro; - /// The macro instantiation with substitutions. MemoryBuffer *Instantiation; @@ -96,8 +93,7 @@ struct MacroInstantiation { SMLoc ExitLoc; public: - MacroInstantiation(const MCAsmMacro *M, SMLoc IL, int EB, SMLoc EL, - MemoryBuffer *I); + MacroInstantiation(SMLoc IL, int EB, SMLoc EL, MemoryBuffer *I); }; struct ParseStatementInfo { @@ -1861,10 +1857,9 @@ bool AsmParser::expandMacro(raw_svector_ostream &OS, StringRef Body, return false; } -MacroInstantiation::MacroInstantiation(const MCAsmMacro *M, SMLoc IL, int EB, - SMLoc EL, MemoryBuffer *I) - : TheMacro(M), Instantiation(I), InstantiationLoc(IL), ExitBuffer(EB), - ExitLoc(EL) {} +MacroInstantiation::MacroInstantiation(SMLoc IL, int EB, SMLoc EL, + MemoryBuffer *I) + : Instantiation(I), InstantiationLoc(IL), ExitBuffer(EB), ExitLoc(EL) {} static bool isOperator(AsmToken::TokenKind kind) { switch (kind) { @@ -2128,7 +2123,7 @@ bool AsmParser::handleMacroEntry(const MCAsmMacro *M, SMLoc NameLoc) { // Create the macro instantiation object and add to the current macro // instantiation stack. MacroInstantiation *MI = new MacroInstantiation( - M, NameLoc, CurBuffer, getTok().getLoc(), Instantiation); + NameLoc, CurBuffer, getTok().getLoc(), Instantiation); ActiveMacros.push_back(MI); // Jump to the macro instantiation and prime the lexer. @@ -4292,7 +4287,7 @@ void AsmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc, // Create the macro instantiation object and add to the current macro // instantiation stack. MacroInstantiation *MI = new MacroInstantiation( - M, DirectiveLoc, CurBuffer, getTok().getLoc(), Instantiation); + DirectiveLoc, CurBuffer, getTok().getLoc(), Instantiation); ActiveMacros.push_back(MI); // Jump to the macro instantiation and prime the lexer. |

