class MCFragment

Declaration

class MCFragment : public ilist_node_with_parent { /* full declaration omitted */ };

Description

An ilist node that can access its parent list. Requires \c NodeTy to have \a getParent() to find the parent node, and the\c ParentTy to have \a getSublistAccess() to get a reference to the list.

Declared at: llvm/include/llvm/MC/MCFragment.h:31

Inherits from: ilist_node_with_parent

Member Variables

protected bool HasInstructions

Method Overview

Methods

MCFragment(llvm::MCFragment::FragmentType Kind,
           bool HasInstructions,
           llvm::MCSection* Parent = nullptr)

Declared at: llvm/include/llvm/MC/MCFragment.h:71

Parameters

llvm::MCFragment::FragmentType Kind
bool HasInstructions
llvm::MCSection* Parent = nullptr

MCFragment()

Declared at: llvm/include/llvm/MC/MCFragment.h:75

MCFragment(const llvm::MCFragment&)

Declared at: llvm/include/llvm/MC/MCFragment.h:76

Parameters

const llvm::MCFragment&

void destroy()

Description

Destroys the current fragment. This must be used instead of delete as MCFragment is non-virtual. This method will dispatch to the appropriate subclass.

Declared at: llvm/include/llvm/MC/MCFragment.h:83

void dump() const

Declared at: llvm/include/llvm/MC/MCFragment.h:100

const llvm::MCSymbol* getAtom() const

Declared at: llvm/include/llvm/MC/MCFragment.h:90

llvm::MCFragment::FragmentType getKind() const

Declared at: llvm/include/llvm/MC/MCFragment.h:85

unsigned int getLayoutOrder() const

Declared at: llvm/include/llvm/MC/MCFragment.h:93

llvm::MCSection* getParent() const

Declared at: llvm/include/llvm/MC/MCFragment.h:87

bool hasInstructions() const

Description

Does this fragment have instructions emitted into it? By default this is false, but specific fragment types may set it to true.

Declared at: llvm/include/llvm/MC/MCFragment.h:98

void setAtom(const llvm::MCSymbol* Value)

Declared at: llvm/include/llvm/MC/MCFragment.h:91

Parameters

const llvm::MCSymbol* Value

void setLayoutOrder(unsigned int Value)

Declared at: llvm/include/llvm/MC/MCFragment.h:94

Parameters

unsigned int Value

void setParent(llvm::MCSection* Value)

Declared at: llvm/include/llvm/MC/MCFragment.h:88

Parameters

llvm::MCSection* Value