Move state var to private class member.
[oota-llvm.git] / include / llvm / MC / MCParser / AsmLexer.h
index 99caebfab7f5d58106dd3408b3862afcb401a837..dcecfb6aa0121618cce278ae6577aac43fd8ac1f 100644 (file)
@@ -29,10 +29,11 @@ class MCAsmInfo;
 /// AsmLexer - Lexer class for assembly files.
 class AsmLexer : public MCAsmLexer {
   const MCAsmInfo &MAI;
-  
+
   const char *CurPtr;
   const MemoryBuffer *CurBuf;
-  
+  bool isAtStartOfLine;
+
   void operator=(const AsmLexer&); // DO NOT IMPLEMENT
   AsmLexer(const AsmLexer&);       // DO NOT IMPLEMENT
 
@@ -43,13 +44,15 @@ protected:
 public:
   AsmLexer(const MCAsmInfo &MAI);
   ~AsmLexer();
-  
+
   void setBuffer(const MemoryBuffer *buf, const char *ptr = NULL);
-  
+
   virtual StringRef LexUntilEndOfStatement();
+  StringRef LexUntilEndOfLine();
 
   bool isAtStartOfComment(char Char);
-  
+  bool isAtStatementSeparator(const char *Ptr);
+
   const MCAsmInfo &getMAI() const { return MAI; }
 
 private:
@@ -64,7 +67,7 @@ private:
   AsmToken LexQuote();
   AsmToken LexFloatLiteral();
 };
-  
+
 } // end namespace llvm
 
 #endif