clang API Documentation

Public Types | Public Member Functions
clang::AsmStmt::AsmStringPiece Class Reference

#include <Stmt.h>

List of all members.

Public Types

enum  Kind { String, Operand }

Public Member Functions

 AsmStringPiece (const std::string &S)
 AsmStringPiece (unsigned OpNo, char Modifier)
bool isString () const
bool isOperand () const
const std::string & getString () const
unsigned getOperandNo () const
char getModifier () const

Detailed Description

AsmStringPiece - this is part of a decomposed asm string specification (for use with the AnalyzeAsmString function below). An asm string is considered to be a concatenation of these parts.

Definition at line 1413 of file Stmt.h.


Member Enumeration Documentation

Enumerator:
String 
Operand 

Definition at line 1415 of file Stmt.h.


Constructor & Destructor Documentation

clang::AsmStmt::AsmStringPiece::AsmStringPiece ( const std::string &  S) [inline]

Definition at line 1424 of file Stmt.h.

clang::AsmStmt::AsmStringPiece::AsmStringPiece ( unsigned  OpNo,
char  Modifier 
) [inline]

Definition at line 1425 of file Stmt.h.


Member Function Documentation

char clang::AsmStmt::AsmStringPiece::getModifier ( ) const [inline]

getModifier - Get the modifier for this operand, if present. This returns '\0' if there was no modifier.

Definition at line 1445 of file Stmt.h.

References isOperand().

unsigned clang::AsmStmt::AsmStringPiece::getOperandNo ( ) const [inline]

Definition at line 1438 of file Stmt.h.

References isOperand().

Referenced by isOperandMentioned().

const std::string& clang::AsmStmt::AsmStringPiece::getString ( ) const [inline]

Definition at line 1433 of file Stmt.h.

References isString().

bool clang::AsmStmt::AsmStringPiece::isOperand ( ) const [inline]

Definition at line 1431 of file Stmt.h.

References Operand.

Referenced by getModifier(), getOperandNo(), and isOperandMentioned().

bool clang::AsmStmt::AsmStringPiece::isString ( ) const [inline]

Definition at line 1430 of file Stmt.h.

References String.

Referenced by getString().


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