[llvm-commits] [llvm] r172491 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Eli Bendersky
eliben at google.com
Mon Jan 14 15:43:18 PST 2013
Author: eliben
Date: Mon Jan 14 17:43:18 2013
New Revision: 172491
URL: http://llvm.org/viewvc/llvm-project?rev=172491&view=rev
Log:
Now GenericAsmParser and AsmParser are no longer friends, GenericAsmParser can
simply use the getParser method from MCAsmParserExtension, working through the
MCAsmParser interface. There's no longer a need to overload that method to
cast it to the concrete AsmParser.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=172491&r1=172490&r2=172491&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Mon Jan 14 17:43:18 2013
@@ -375,10 +375,6 @@
public:
GenericAsmParser() {}
- AsmParser &getParser() {
- return (AsmParser&) this->MCAsmParserExtension::getParser();
- }
-
virtual void Initialize(MCAsmParser &Parser) {
// Call the base implementation.
this->MCAsmParserExtension::Initialize(Parser);
More information about the llvm-commits
mailing list