LLVM API Documentation
#include <Parser.h>
Public Member Functions | |
| ParseError () | |
| ParseError (const ParseError &E) | |
| void | setFilename (const std::string &F) |
| const std::string & | getRawMessage () const |
| const std::string & | getFilename () const |
| void | setError (const std::string &message, int lineNo=-1, int ColNo=-1, const std::string &FileContents="") |
| void | getErrorLocation (int &Line, int &Column) const |
| void | PrintError (const char *ProgName, raw_ostream &S) |
An instance of this class can be passed to ParseAssemblyFile or ParseAssemblyString functions in order to capture error information from the parser. It provides a standard way to print out the error message including the file name and line number where the error occurred.
Definition at line 57 of file Parser.h.
| llvm::ParseError::ParseError | ( | const ParseError & | E | ) |
| void llvm::ParseError::setFilename | ( | const std::string & | F | ) | [inline] |
Definition at line 62 of file Parser.h.
Referenced by llvm::ParseAssemblyFile(), and llvm::ParseAssemblyString().
| const std::string& llvm::ParseError::getRawMessage | ( | ) | const [inline] |
| const std::string& llvm::ParseError::getFilename | ( | ) | const [inline] |
| void llvm::ParseError::setError | ( | const std::string & | message, | |
| int | lineNo = -1, |
|||
| int | ColNo = -1, |
|||
| const std::string & | FileContents = "" | |||
| ) | [inline] |
Definition at line 72 of file Parser.h.
Referenced by llvm::LLLexer::Error(), and llvm::ParseAssemblyFile().
| void llvm::ParseError::getErrorLocation | ( | int & | Line, | |
| int & | Column | |||
| ) | const [inline] |
| void ParseError::PrintError | ( | const char * | ProgName, | |
| raw_ostream & | S | |||
| ) |