Now GenericAsmParser and AsmParser are no longer friends, GenericAsmParser can
authorEli Bendersky <eliben@google.com>
Mon, 14 Jan 2013 23:43:18 +0000 (23:43 +0000)
committerEli Bendersky <eliben@google.com>
Mon, 14 Jan 2013 23:43:18 +0000 (23:43 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172491 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCParser/AsmParser.cpp

index 665d6729e60bf8c5da0f5cc2e27dc2cbfbca9475..66d3bc745a92b444fb1e619f916f1bb51e98bd13 100644 (file)
@@ -375,10 +375,6 @@ class GenericAsmParser : public MCAsmParserExtension {
 public:
   GenericAsmParser() {}
 
-  AsmParser &getParser() {
-    return (AsmParser&) this->MCAsmParserExtension::getParser();
-  }
-
   virtual void Initialize(MCAsmParser &Parser) {
     // Call the base implementation.
     this->MCAsmParserExtension::Initialize(Parser);