Target independent representation for an assembler token.

Synopsis

Declared in <llvm/MC/MCAsmMacro.h>

class AsmToken;

Enums

Name

Description

TokenKind

Kind of token recognized by the assembler lexer.

Member Functions

Name

Description

AsmToken [constructor]

Constructors

dump

Dump a debug representation of this token to OS.

getAPIntVal

Return the arbitrary‐precision integer value of an integer or big‐num token.

getEndLoc

Return the source location of the end of this token.

getIdentifier

Get the identifier string for an identifier or string token.

getIntVal

Return the zero‐extended 64‐bit integer value of an integer token.

getKind

Return the kind of this token.

getLoc

Return the source location of the start of this token.

getLocRange

Return the source range covering this token.

getString

Get the string for the current token, this includes all characters (for example, the quotes on strings) in the token.

getStringContents

Get the contents of a string token (without quotes).

is

Return true if this token has kind K.

isNot

Return true if this token does not have kind K.

Created with MrDocs