15#ifndef LLVM_MC_MCSECTIONGOFF_H
16#define LLVM_MC_MCSECTIONGOFF_H
33 MCSectionGOFF *Parent;
51 unsigned RequiresNonZeroLength : 1;
54 mutable unsigned Emitted : 1;
64 IsBSS(K.
isBSS()), RequiresNonZeroLength(0), Emitted(0) {}
68 :
MCSection(Name, K.isText(), IsVirtual, nullptr), Parent(Parent),
69 EDAttributes(EDAttributes),
SymbolType(
GOFF::ESD_ST_ElementDefinition),
70 IsBSS(K.isBSS()), RequiresNonZeroLength(0), Emitted(0) {}
72 MCSectionGOFF(StringRef Name, SectionKind K,
bool IsVirtual,
73 GOFF::PRAttr PRAttributes, MCSectionGOFF *Parent)
74 : MCSection(Name, K.isText(), IsVirtual, nullptr), Parent(Parent),
75 PRAttributes(PRAttributes), SymbolType(GOFF::ESD_ST_PartReference),
76 IsBSS(K.isBSS()), RequiresNonZeroLength(0), Emitted(0) {}
83 bool isBSS()
const {
return IsBSS; }
112 return getParent()->getEDAttributes().TextStyle;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static const Function * getParent(const Value *V)
static StringRef getName(Value *V)
Base class for the full range of assembler expressions which are needed for parsing.
GOFF::SDAttr getSDAttributes() const
bool hasExternalName() const
friend class MCAsmInfoGOFF
GOFF::ESDSymbolType getSymbolType() const
GOFF::SDAttr SDAttributes
GOFF::EDAttr getEDAttributes() const
GOFF::PRAttr getPRAttributes() const
bool requiresNonZeroLength() const
friend class MCSymbolGOFF
GOFF::PRAttr PRAttributes
void setName(StringRef SectionName)
GOFF::ESDTextStyle getTextStyle() const
void setExternalName(StringRef Name)
StringRef getExternalName() const
GOFF::EDAttr EDAttributes
MCSectionGOFF * getParent() const
Instances of this class represent a uniqued identifier for a section in the current translation unit.
bool isBssSection() const
Check whether this section is "virtual", that is has no actual object file contents.
MCSection(StringRef Name, bool IsText, bool IsBss, MCSymbol *Begin)
SectionKind - This is a simple POD value that classifies the properties of a section.
StringRef - Represent a constant reference to a string, i.e.
@ ESD_ST_ElementDefinition
@ ESD_ST_SectionDefinition
This is an optimization pass for GlobalISel generic memory operations.