[C++11] Add 'override' keyword to virtual methods that override their base class.
[oota-llvm.git] / include / llvm / MC / MCParser / AsmLexer.h
index 89677a91cd381ea664eaef7403047ce938a2afd6..f36011c9ff93bf594cae9b13bda1ffff5cc4f8e7 100644 (file)
@@ -36,7 +36,7 @@ class AsmLexer : public MCAsmLexer {
 
 protected:
   /// LexToken - Read the next token and return its code.
-  virtual AsmToken LexToken();
+  AsmToken LexToken() override;
 
 public:
   AsmLexer(const MCAsmInfo &MAI);
@@ -44,10 +44,10 @@ public:
 
   void setBuffer(const MemoryBuffer *buf, const char *ptr = NULL);
 
-  virtual StringRef LexUntilEndOfStatement();
+  StringRef LexUntilEndOfStatement() override;
   StringRef LexUntilEndOfLine();
 
-  virtual const AsmToken peekTok(bool ShouldSkipSpace = true);
+  const AsmToken peekTok(bool ShouldSkipSpace = true) override;
 
   bool isAtStartOfComment(char Char);
   bool isAtStatementSeparator(const char *Ptr);