10 #ifndef LLVM_MC_SECTIONKIND_H
11 #define LLVM_MC_SECTIONKIND_H
45 Mergeable1ByteCString,
48 Mergeable2ByteCString,
51 Mergeable4ByteCString,
119 bool isText()
const {
return K == Text || K == ExecuteOnly; }
129 return K == Mergeable1ByteCString || K == Mergeable2ByteCString ||
130 K == Mergeable4ByteCString;
137 return K == MergeableConst4 || K == MergeableConst8 ||
138 K == MergeableConst16 || K == MergeableConst32;
150 return K == ThreadData || K == ThreadBSS;
160 bool isBSS()
const {
return K == BSS || K == BSSLocal || K == BSSExtern; }
166 bool isData()
const {
return K == Data; }
169 return K == ReadOnlyWithRel;
184 return get(Mergeable1ByteCString);
187 return get(Mergeable2ByteCString);
190 return get(Mergeable4ByteCString);
static SectionKind getData()
bool isMergeableConst() const
static SectionKind getMergeableConst32()
bool isMergeable2ByteCString() const
bool isReadOnlyWithRel() const
static SectionKind getMergeableConst8()
static SectionKind getMergeableConst16()
static SectionKind getMergeable1ByteCString()
static SectionKind getCommon()
static SectionKind getMergeableConst4()
bool isMergeableCString() const
static SectionKind getBSS()
static SectionKind getMergeable4ByteCString()
bool isMergeable4ByteCString() const
bool isMergeableConst32() const
static SectionKind getThreadData()
bool isMergeableConst16() const
static SectionKind getBSSLocal()
bool isThreadData() const
bool isMergeable1ByteCString() const
SectionKind - This is a simple POD value that classifies the properties of a section.
bool isExecuteOnly() const
bool isThreadLocal() const
static SectionKind getThreadBSS()
bool isGlobalWriteableData() const
static SectionKind getMetadata()
static SectionKind getReadOnlyWithRel()
bool isMergeableConst8() const
static SectionKind getMergeable2ByteCString()
static SectionKind getBSSExtern()
bool isMergeableConst4() const
static SectionKind getReadOnly()
static SectionKind getExecuteOnly()
static SectionKind getText()