15 #ifndef LLVM_MC_SECTIONKIND_H
16 #define LLVM_MC_SECTIONKIND_H
47 Mergeable1ByteCString,
50 Mergeable2ByteCString,
53 Mergeable4ByteCString,
138 bool isText()
const {
return K == Text; }
146 return K == Mergeable1ByteCString || K == Mergeable2ByteCString ||
147 K == Mergeable4ByteCString;
154 return K == MergeableConst || K == MergeableConst4 ||
155 K == MergeableConst8 || K == MergeableConst16;
166 return K == ThreadData || K == ThreadBSS;
176 bool isBSS()
const {
return K == BSS || K == BSSLocal || K == BSSExtern; }
183 return K == DataRel || K == DataRelLocal || K == DataNoRel;
187 return K == DataRelLocal || K == DataNoRel;
193 return K == ReadOnlyWithRel || K == ReadOnlyWithRelLocal;
197 return K == ReadOnlyWithRelLocal;
211 return get(Mergeable1ByteCString);
214 return get(Mergeable2ByteCString);
217 return get(Mergeable4ByteCString);
234 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
bool isThreadLocal() const
static SectionKind getThreadBSS()
bool isGlobalWriteableData() const
static SectionKind getDataNoRel()
static SectionKind getMergeableConst()
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()