X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FAsmParser%2FLLLexer.h;h=219827fd330d8eba5d15963269616493f03ab0ff;hb=8308f0e30fb647576a9a9de775e45fb4b1c0a08f;hp=5dfb2be3b2810adfdfef4bd812d6069d8b25c64a;hpb=15f387c93ef8d5c23f110143996c8b9b4a089864;p=oota-llvm.git diff --git a/lib/AsmParser/LLLexer.h b/lib/AsmParser/LLLexer.h index 5dfb2be3b28..219827fd330 100644 --- a/lib/AsmParser/LLLexer.h +++ b/lib/AsmParser/LLLexer.h @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LIB_ASMPARSER_LLLEXER_H -#define LIB_ASMPARSER_LLLEXER_H +#ifndef LLVM_LIB_ASMPARSER_LLLEXER_H +#define LLVM_LIB_ASMPARSER_LLLEXER_H #include "LLToken.h" #include "llvm/ADT/APFloat.h" @@ -26,9 +26,9 @@ namespace llvm { class SMDiagnostic; class LLVMContext; - class LLVM_LIBRARY_VISIBILITY LLLexer { + class LLLexer { const char *CurPtr; - MemoryBuffer *CurBuf; + StringRef CurBuf; SMDiagnostic &ErrorInfo; SourceMgr &SM; LLVMContext &Context; @@ -43,7 +43,7 @@ namespace llvm { APSInt APSIntVal; public: - explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &, + explicit LLLexer(StringRef StartBuf, SourceMgr &SM, SMDiagnostic &, LLVMContext &C); ~LLLexer() {} @@ -63,7 +63,9 @@ namespace llvm { bool Error(LocTy L, const Twine &Msg) const; bool Error(const Twine &Msg) const { return Error(getLoc(), Msg); } - std::string getFilename() const; + + void Warning(LocTy WarningLoc, const Twine &Msg) const; + void Warning(const Twine &Msg) const { return Warning(getLoc(), Msg); } private: lltok::Kind LexToken(); @@ -77,6 +79,7 @@ namespace llvm { lltok::Kind LexDigitOrNegative(); lltok::Kind LexPositive(); lltok::Kind LexAt(); + lltok::Kind LexDollar(); lltok::Kind LexExclaim(); lltok::Kind LexPercent(); lltok::Kind LexQuote();