LLVM API Documentation

llvm::MCAsmParser Class Reference

#include <MCAsmParser.h>

List of all members.

Public Member Functions

virtual ~MCAsmParser ()
virtual MCAsmLexer & getLexer ()=0
virtual void Warning (SMLoc L, const Twine &Msg)=0
virtual bool Error (SMLoc L, const Twine &Msg)=0
virtual bool ParseAbsoluteExpression (int64_t &Res)=0
virtual bool ParseRelocatableExpression (MCValue &Res)=0
virtual bool ParseParenRelocatableExpression (MCValue &Res)=0

Protected Member Functions

 MCAsmParser ()


Detailed Description

MCAsmParser - Generic assembler parser interface, for use by target specific assembly parsers.

Definition at line 23 of file MCAsmParser.h.


Constructor & Destructor Documentation

MCAsmParser::MCAsmParser (  )  [protected]

Definition at line 14 of file MCAsmParser.cpp.

MCAsmParser::~MCAsmParser (  )  [virtual]

Definition at line 17 of file MCAsmParser.cpp.


Member Function Documentation

virtual MCAsmLexer& llvm::MCAsmParser::getLexer (  )  [pure virtual]

virtual void llvm::MCAsmParser::Warning ( SMLoc  L,
const Twine &  Msg 
) [pure virtual]

Warning - Emit a warning at the location

  • L, with the message
  • Msg.

virtual bool llvm::MCAsmParser::Error ( SMLoc  L,
const Twine &  Msg 
) [pure virtual]

Warning - Emit an error at the location

  • L, with the message
  • Msg.
Returns:
The return value is always true, as an idiomatic convenience to clients.

virtual bool llvm::MCAsmParser::ParseAbsoluteExpression ( int64_t &  Res  )  [pure virtual]

ParseAbsoluteExpression - Parse an expression which must evaluate to an absolute value.

Parameters:
Res - The value of the absolute expression. The result is undefined on error.
Returns:
- False on success.

virtual bool llvm::MCAsmParser::ParseRelocatableExpression ( MCValue &  Res  )  [pure virtual]

ParseRelocatableExpression - Parse an expression which must be relocatable.

Parameters:
Res - The relocatable expression value. The result is undefined on error.
Returns:
- False on success.

virtual bool llvm::MCAsmParser::ParseParenRelocatableExpression ( MCValue &  Res  )  [pure virtual]

ParseParenRelocatableExpression - Parse an expression which must be relocatable, assuming that an initial '(' has already been consumed.

Parameters:
Res - The relocatable expression value. The result is undefined on error.
Returns:
- False on success.
See also:
ParseRelocatableExpression, ParseParenExpr.


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