15 #ifndef LLVM_MC_SECTIONKIND_H
16 #define LLVM_MC_SECTIONKIND_H
47 Mergeable1ByteCString,
50 Mergeable2ByteCString,
53 Mergeable4ByteCString,
137 bool isText()
const {
return K == Text; }
145 return K == Mergeable1ByteCString || K == Mergeable2ByteCString ||
146 K == Mergeable4ByteCString;
153 return K == MergeableConst4 || K == MergeableConst8 ||
154 K == MergeableConst16;
165 return K == ThreadData || K == ThreadBSS;
175 bool isBSS()
const {
return K == BSS || K == BSSLocal || K == BSSExtern; }
182 return K == DataRel || K == DataRelLocal || K == DataNoRel;
186 return K == DataRelLocal || K == DataNoRel;
192 return K == ReadOnlyWithRel || K == ReadOnlyWithRelLocal;
196 return K == ReadOnlyWithRelLocal;
210 return get(Mergeable1ByteCString);
213 return get(Mergeable2ByteCString);
216 return get(Mergeable4ByteCString);
232 return get(ReadOnlyWithRelLocal);
static SectionKind getReadOnlyWithRelLocal()
bool isMergeableConst() const
static SectionKind getDataRel()
bool isMergeable2ByteCString() const
static SectionKind getDataRelLocal()
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
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 isThreadLocal() const
static SectionKind getThreadBSS()
bool isGlobalWriteableData() const
static SectionKind getDataNoRel()
static SectionKind getMetadata()
static SectionKind getReadOnlyWithRel()
bool isMergeableConst8() const
static SectionKind getMergeable2ByteCString()
static SectionKind getBSSExtern()
bool isMergeableConst4() const
bool isReadOnlyWithRelLocal() const
static SectionKind getReadOnly()
bool isDataRelLocal() const
static SectionKind getText()