diff options
Diffstat (limited to 'llvm/lib/TableGen/TGParser.h')
-rw-r--r-- | llvm/lib/TableGen/TGParser.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h index 2a5a192..7edb6c7 100644 --- a/llvm/lib/TableGen/TGParser.h +++ b/llvm/lib/TableGen/TGParser.h @@ -167,9 +167,9 @@ class TGParser { // in the middle of creating in. For those situations, allow the // parser to ignore missing object errors. enum IDParseMode { - ParseValueMode, // We are parsing a value we expect to look up. - ParseNameMode, // We are parsing a name of an object that does not yet - // exist. + ParseValueMode, // We are parsing a value we expect to look up. + ParseNameMode, // We are parsing a name of an object that does not yet + // exist. }; bool NoWarnOnUnusedTemplateArgs = false; @@ -191,9 +191,7 @@ public: PrintError(L, Msg); return true; } - bool TokError(const Twine &Msg) const { - return Error(Lex.getLoc(), Msg); - } + bool TokError(const Twine &Msg) const { return Error(Lex.getLoc(), Msg); } const TGLexer::DependenciesSetTy &getDependencies() const { return Lex.getDependencies(); } @@ -257,7 +255,7 @@ private: // Semantic analysis methods. ArrayRef<const ArgumentInit *> ArgValues, const Init *DefmName, SMLoc Loc); -private: // Parser methods. +private: // Parser methods. bool consume(tgtok::TokKind K); bool ParseObjectList(MultiClass *MC = nullptr); bool ParseObject(MultiClass *MC); |