summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGLexer.h
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-03-09 18:32:04 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-03-09 18:32:04 +0000
commit169ec09cb7077cc7be74460a371dafa2cecb2f95 (patch)
tree3c8ddf11cc5a7c3c09bec9a10c58e75b4f6639c5 /llvm/lib/TableGen/TGLexer.h
parent230d38b559184688d6f5d0f74e1c966c257dc2bd (diff)
downloadbcm5719-llvm-169ec09cb7077cc7be74460a371dafa2cecb2f95.tar.gz
bcm5719-llvm-169ec09cb7077cc7be74460a371dafa2cecb2f95.zip
TableGen: Remove space at EOL in TGLexer.{h,cpp}
Change-Id: Ica5f39470174e85f173d3b6db95789033f75ce17 llvm-svn: 327158
Diffstat (limited to 'llvm/lib/TableGen/TGLexer.h')
-rw-r--r--llvm/lib/TableGen/TGLexer.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/TableGen/TGLexer.h b/llvm/lib/TableGen/TGLexer.h
index c2222472195..2ffc2efdc30 100644
--- a/llvm/lib/TableGen/TGLexer.h
+++ b/llvm/lib/TableGen/TGLexer.h
@@ -30,7 +30,7 @@ namespace tgtok {
enum TokKind {
// Markers
Eof, Error,
-
+
// Tokens with no info.
minus, plus, // - +
l_square, r_square, // [ ]
@@ -56,7 +56,7 @@ namespace tgtok {
// Binary constant. Note that these are sized according to the number of
// bits given.
BinaryIntVal,
-
+
// String valued tokens.
Id, StrVal, VarName, CodeFragment
};
@@ -65,7 +65,7 @@ namespace tgtok {
/// TGLexer - TableGen Lexer class.
class TGLexer {
SourceMgr &SrcMgr;
-
+
const char *CurPtr;
StringRef CurBuf;
@@ -95,11 +95,11 @@ public:
const DependenciesMapTy &getDependencies() const {
return Dependencies;
}
-
+
tgtok::TokKind getCode() const { return CurCode; }
const std::string &getCurStrVal() const {
- assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal ||
+ assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal ||
CurCode == tgtok::VarName || CurCode == tgtok::CodeFragment) &&
"This token doesn't have a string value");
return CurStrVal;
@@ -115,13 +115,13 @@ public:
}
SMLoc getLoc() const;
-
+
private:
/// LexToken - Read the next token and return its code.
tgtok::TokKind LexToken();
-
+
tgtok::TokKind ReturnError(const char *Loc, const Twine &Msg);
-
+
int getNextChar();
int peekNextChar(int Index);
void SkipBCPLComment();
@@ -134,7 +134,7 @@ private:
tgtok::TokKind LexBracket();
tgtok::TokKind LexExclaim();
};
-
+
} // end namespace llvm
#endif
OpenPOWER on IntegriCloud