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
- protected MCFragment(llvm::MCFragment::FragmentType Kind, bool HasInstructions, llvm::MCSection * Parent = nullptr)
- public MCFragment()
- public MCFragment(const llvm::MCFragment &)
- public void destroy()
- public void dump() const
- public const llvm::MCSymbol * getAtom() const
- public llvm::MCFragment::FragmentType getKind() const
- public unsigned int getLayoutOrder() const
- public llvm::MCSection * getParent() const
- public bool hasInstructions() const
- public void setAtom(const llvm::MCSymbol * Value)
- public void setLayoutOrder(unsigned int Value)
- public void setParent(llvm::MCSection * Value)
Methods
¶MCFragment(llvm::MCFragment::FragmentType Kind,
bool HasInstructions,
llvm::MCSection* Parent = nullptr)
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()
MCFragment()
Declared at: llvm/include/llvm/MC/MCFragment.h:75
¶MCFragment(const llvm::MCFragment&)
MCFragment(const llvm::MCFragment&)
Declared at: llvm/include/llvm/MC/MCFragment.h:76
Parameters
- const llvm::MCFragment&
¶void destroy()
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
void dump() const
Declared at: llvm/include/llvm/MC/MCFragment.h:100
¶const llvm::MCSymbol* getAtom() const
const llvm::MCSymbol* getAtom() const
Declared at: llvm/include/llvm/MC/MCFragment.h:90
¶llvm::MCFragment::FragmentType getKind() const
llvm::MCFragment::FragmentType getKind() const
Declared at: llvm/include/llvm/MC/MCFragment.h:85
¶unsigned int getLayoutOrder() const
unsigned int getLayoutOrder() const
Declared at: llvm/include/llvm/MC/MCFragment.h:93
¶llvm::MCSection* getParent() const
llvm::MCSection* getParent() const
Declared at: llvm/include/llvm/MC/MCFragment.h:87
¶bool hasInstructions() const
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)
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)
void setLayoutOrder(unsigned int Value)
Declared at: llvm/include/llvm/MC/MCFragment.h:94
Parameters
- unsigned int Value
¶void setParent(llvm::MCSection* Value)
void setParent(llvm::MCSection* Value)
Declared at: llvm/include/llvm/MC/MCFragment.h:88
Parameters
- llvm::MCSection* Value