LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::StringInit Class Reference

#include <Record.h>

Inheritance diagram for llvm::StringInit:
Inheritance graph
[legend]
Collaboration diagram for llvm::StringInit:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const std::string & getValue () const
InitconvertInitializerTo (RecTy *Ty) const override
std::string getAsString () const override
 getAsString - Convert this value to a string form.
std::string getAsUnquotedString () const override
InitresolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const override
InitgetBit (unsigned Bit) const override

Static Public Member Functions

static bool classof (const Init *I)
static StringInitget (StringRef)

Detailed Description

StringInit - "foo" - Represent an initialization by a string value.

Definition at line 750 of file Record.h.


Member Function Documentation

static bool llvm::StringInit::classof ( const Init I) [inline, static]

Reimplemented from llvm::TypedInit.

Definition at line 761 of file Record.h.

References llvm::Init::getKind(), and llvm::Init::IK_StringInit.

Init* llvm::StringInit::convertInitializerTo ( RecTy Ty) const [inline, override, virtual]

convertInitializerTo - This virtual function is a simple call-back function that should be overridden to call the appropriate RecTy::convertValue method.

Implements llvm::Init.

Definition at line 768 of file Record.h.

References llvm::RecTy::convertValue().

std::string llvm::StringInit::getAsString ( ) const [inline, override, virtual]

getAsString - Convert this value to a string form.

Implements llvm::Init.

Definition at line 772 of file Record.h.

std::string llvm::StringInit::getAsUnquotedString ( ) const [inline, override, virtual]

getAsUnquotedString - Convert this value to a string form, without adding quote markers. This primaruly affects StringInits where we will not surround the string value with quotes.

Reimplemented from llvm::Init.

Definition at line 773 of file Record.h.

Init* llvm::StringInit::getBit ( unsigned  Bit) const [inline, override, virtual]

getBit - This method is used to return the initializer for the specified bit.

Implements llvm::Init.

Definition at line 783 of file Record.h.

References llvm_unreachable.

const std::string& llvm::StringInit::getValue ( ) const [inline]
Init* llvm::StringInit::resolveListElementReference ( Record R,
const RecordVal RV,
unsigned  Elt 
) const [inline, override, virtual]

resolveListElementReference - This method is used to implement VarListElementInit::resolveReferences. If the list element is resolvable now, we return the resolved value, otherwise we return null.

Implements llvm::TypedInit.

Definition at line 778 of file Record.h.

References llvm_unreachable.


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