14 #ifndef LLVM_MC_MCSECTIONCOFF_H
15 #define LLVM_MC_MCSECTIONCOFF_H
33 mutable unsigned Characteristics;
37 mutable int Selection;
49 Characteristics(Characteristics), Selection(Selection), Assoc(Assoc) {
50 assert ((Characteristics & 0x00F00000) == 0 &&
51 "alignment must not be set upon section creation");
54 "associative COMDAT section must have an associated section");
65 return SectionName.
str() +
"_begin";
68 return SectionName.
str() +
"_end";
78 const MCExpr *Subsection)
const;
SectionVariant getVariant() const
std::string str() const
str - Get the contents as an std::string.
MCSectionCOFF - This represents a section on Windows.
bool ShouldOmitSectionDirective(StringRef Name, const MCAsmInfo &MAI) const
virtual bool isVirtualSection() const
const MCSectionCOFF * getAssocSection() const
unsigned getCharacteristics() const
virtual std::string getLabelEndName() const
StringRef getSectionName() const
virtual std::string getLabelBeginName() const
static bool classof(const MCSection *S)
void setSelection(int Selection, const MCSectionCOFF *Assoc=0) const
COFF::SectionCharacteristics Characteristics
virtual void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const
virtual bool UseCodeAlign() const