projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Small refactor on VectorizerHint for deduplication"
[oota-llvm.git]
/
lib
/
AsmParser
/
LLLexer.h
diff --git
a/lib/AsmParser/LLLexer.h
b/lib/AsmParser/LLLexer.h
index 5dfb2be3b2810adfdfef4bd812d6069d8b25c64a..219827fd330d8eba5d15963269616493f03ab0ff 100644
(file)
--- 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 L
LVM_L
IB_ASMPARSER_LLLEXER_H
+#define L
LVM_L
IB_ASMPARSER_LLLEXER_H
#include "LLToken.h"
#include "llvm/ADT/APFloat.h"
#include "LLToken.h"
#include "llvm/ADT/APFloat.h"
@@
-26,9
+26,9
@@
namespace llvm {
class SMDiagnostic;
class LLVMContext;
class SMDiagnostic;
class LLVMContext;
- class LL
VM_LIBRARY_VISIBILITY LL
Lexer {
+ class LLLexer {
const char *CurPtr;
const char *CurPtr;
-
MemoryBuffer *
CurBuf;
+
StringRef
CurBuf;
SMDiagnostic &ErrorInfo;
SourceMgr &SM;
LLVMContext &Context;
SMDiagnostic &ErrorInfo;
SourceMgr &SM;
LLVMContext &Context;
@@
-43,7
+43,7
@@
namespace llvm {
APSInt APSIntVal;
public:
APSInt APSIntVal;
public:
- explicit LLLexer(
MemoryBuffer *
StartBuf, SourceMgr &SM, SMDiagnostic &,
+ explicit LLLexer(
StringRef
StartBuf, SourceMgr &SM, SMDiagnostic &,
LLVMContext &C);
~LLLexer() {}
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); }
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();
private:
lltok::Kind LexToken();
@@
-77,6
+79,7
@@
namespace llvm {
lltok::Kind LexDigitOrNegative();
lltok::Kind LexPositive();
lltok::Kind LexAt();
lltok::Kind LexDigitOrNegative();
lltok::Kind LexPositive();
lltok::Kind LexAt();
+ lltok::Kind LexDollar();
lltok::Kind LexExclaim();
lltok::Kind LexPercent();
lltok::Kind LexQuote();
lltok::Kind LexExclaim();
lltok::Kind LexPercent();
lltok::Kind LexQuote();