aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/TGParser.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-10-23 07:32:37 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-10-23 07:32:37 +0000
commitc761f7dca2134d4d500ce7f7db4422356725ee8c (patch)
treeccb166f8bd277783bbc832c1c6ea1d53ad8b88bd /utils/TableGen/TGParser.cpp
parent5c2d428f43e83912e8f20e6f917fe11236741bfb (diff)
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGParser.cpp')
-rw-r--r--utils/TableGen/TGParser.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/TableGen/TGParser.cpp b/utils/TableGen/TGParser.cpp
index 188ba4d2b1..a666c9140d 100644
--- a/utils/TableGen/TGParser.cpp
+++ b/utils/TableGen/TGParser.cpp
@@ -314,7 +314,7 @@ static std::string GetNewAnonymousName() {
std::string TGParser::ParseObjectName() {
if (Lex.getCode() != tgtok::Id)
return GetNewAnonymousName();
-
+
std::string Ret = Lex.getCurStrVal();
Lex.Lex();
return Ret;
@@ -823,7 +823,7 @@ Init *TGParser::ParseOperation(Record *CurRec) {
Type = new StringRecTy();
break;
}
-
+
if (Lex.getCode() != tgtok::l_paren) {
TokError("expected '(' after binary operator");
return 0;
@@ -831,7 +831,7 @@ Init *TGParser::ParseOperation(Record *CurRec) {
Lex.Lex(); // eat the '('
SmallVector<Init*, 2> InitList;
-
+
InitList.push_back(ParseValue(CurRec));
if (InitList.back() == 0) return 0;
@@ -858,11 +858,11 @@ Init *TGParser::ParseOperation(Record *CurRec) {
InitList.back() = RHS;
}
}
-
+
if (InitList.size() == 2)
return (new BinOpInit(Code, InitList[0], InitList[1], Type))
->Fold(CurRec, CurMultiClass);
-
+
Error(OpLoc, "expected two operands to operator");
return 0;
}
@@ -1907,7 +1907,7 @@ bool TGParser::ParseDefm(MultiClass *CurMultiClass) {
DefmPrefix = Lex.getCurStrVal();
Lex.Lex(); // Eat the defm prefix.
}
-
+
SMLoc DefmPrefixLoc = Lex.getLoc();
if (Lex.getCode() != tgtok::colon)
return TokError("expected ':' after defm identifier");