diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-27 19:49:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-27 19:49:03 +0000 |
commit | 9eef18c58ce759a6ae9e6303664a1f8a24139871 (patch) | |
tree | d935f8b8180179a259970b46dd3b2dc3160e38be /llvm/lib/MC | |
parent | a253bf9678290ef4940786288bdb7713b7bf14e7 (diff) | |
download | bcm5719-llvm-9eef18c58ce759a6ae9e6303664a1f8a24139871.tar.gz bcm5719-llvm-9eef18c58ce759a6ae9e6303664a1f8a24139871.zip |
Remove unused argument.
llvm-svn: 216580
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index bc98967eaa7..c82e1183aaf 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -89,8 +89,7 @@ struct MacroInstantiation { size_t CondStackDepth; public: - MacroInstantiation(SMLoc IL, int EB, SMLoc EL, StringRef I, - size_t CondStackDepth); + MacroInstantiation(SMLoc IL, int EB, SMLoc EL, size_t CondStackDepth); }; struct ParseStatementInfo { @@ -1859,7 +1858,7 @@ bool AsmParser::expandMacro(raw_svector_ostream &OS, StringRef Body, } MacroInstantiation::MacroInstantiation(SMLoc IL, int EB, SMLoc EL, - StringRef I, size_t CondStackDepth) + size_t CondStackDepth) : InstantiationLoc(IL), ExitBuffer(EB), ExitLoc(EL), CondStackDepth(CondStackDepth) {} @@ -2124,9 +2123,8 @@ 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(NameLoc, CurBuffer, getTok().getLoc(), - Instantiation->getBuffer(), TheCondStack.size()); + MacroInstantiation *MI = new MacroInstantiation( + NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()); ActiveMacros.push_back(MI); // Jump to the macro instantiation and prime the lexer. @@ -4311,9 +4309,8 @@ void AsmParser::instantiateMacroLikeBody(MCAsmMacro *M, SMLoc DirectiveLoc, // Create the macro instantiation object and add to the current macro // instantiation stack. - MacroInstantiation *MI = - new MacroInstantiation(DirectiveLoc, CurBuffer, getTok().getLoc(), - Instantiation->getBuffer(), TheCondStack.size()); + MacroInstantiation *MI = new MacroInstantiation( + DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size()); ActiveMacros.push_back(MI); // Jump to the macro instantiation and prime the lexer. |