LLVM API Documentation

llvm::ParseError Class Reference

An LLVM Assembly Parsing Error Object. More...

#include <Parser.h>

Collaboration diagram for llvm::ParseError:
[legend]

List of all members.

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)


Detailed Description

An LLVM Assembly Parsing Error Object.

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.


Constructor & Destructor Documentation

llvm::ParseError::ParseError (  )  [inline]

Definition at line 59 of file Parser.h.

llvm::ParseError::ParseError ( const ParseError &  E  ) 


Member Function Documentation

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]

Definition at line 64 of file Parser.h.

const std::string& llvm::ParseError::getFilename (  )  const [inline]

Definition at line 68 of file Parser.h.

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]

Definition at line 84 of file Parser.h.

void ParseError::PrintError ( const char *  ProgName,
raw_ostream &  S 
)

Definition at line 64 of file Parser.cpp.

References llvm::errs().


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