LLVM  6.0.0svn
Classes | Public Member Functions | List of all members
llvm::TGParser Class Reference

#include "TableGen/TGParser.h"

Public Member Functions

 TGParser (SourceMgr &SrcMgr, RecordKeeper &records)
 
bool ParseFile ()
 ParseFile - Main entrypoint for parsing a tblgen file. More...
 
bool Error (SMLoc L, const Twine &Msg) const
 
bool TokError (const Twine &Msg) const
 
const TGLexer::DependenciesMapTygetDependencies () const
 

Detailed Description

Definition at line 54 of file TGParser.h.

Constructor & Destructor Documentation

◆ TGParser()

llvm::TGParser::TGParser ( SourceMgr SrcMgr,
RecordKeeper records 
)
inline

Definition at line 86 of file TGParser.h.

Member Function Documentation

◆ Error()

bool llvm::TGParser::Error ( SMLoc  L,
const Twine Msg 
) const
inline

Definition at line 93 of file TGParser.h.

References llvm::PrintError().

◆ getDependencies()

const TGLexer::DependenciesMapTy& llvm::TGParser::getDependencies ( ) const
inline

◆ ParseFile()

bool llvm::TGParser::ParseFile ( )

ParseFile - Main entrypoint for parsing a tblgen file.

These parser routines return true on error, or false on success.

Referenced by isObjectStart(), and llvm::TableGenMain().

◆ TokError()

bool llvm::TGParser::TokError ( const Twine Msg) const
inline

Definition at line 97 of file TGParser.h.

References llvm::lltok::Error, and llvm::TGLexer::getLoc().


The documentation for this class was generated from the following files: