20 MCSectionELF::~MCSectionELF() {}
31 if (Name ==
".text" || Name ==
".data" ||
40 "abcdefghijklmnopqrstuvwxyz"
41 "ABCDEFGHIJKLMNOPQRSTUVWXYZ") == Name.
npos) {
46 for (
const char *B = Name.
begin(), *E = Name.
end(); B < E; ++B) {
63 const MCExpr *Subsection)
const {
69 Subsection->
print(OS, &MAI);
134 OS <<
"preinit_array";
143 assert(
Flags & ELF::SHF_MERGE);
144 OS <<
"," << EntrySize;
147 if (
Flags & ELF::SHF_GROUP) {
154 OS <<
",unique," << UniqueID;
159 OS <<
"\t.subsection\t";
160 Subsection->
print(OS, &MAI);
StringRef getSectionName() const
bool UseCodeAlign() const override
Return true if a .align directive should use "optimized nops" to fill instead of 0s.
static void printName(raw_ostream &OS, StringRef Name)
unsigned getFlags() const
Base class for the full range of assembler expressions which are needed for parsing.
This class is intended to be used as a base class for asm properties and features specific to the tar...
void print(raw_ostream &OS, const MCAsmInfo *MAI) const
The instances of the Type class are immutable: once they are created, they are never changed...
bool isVirtualSection() const override
Check whether this section is "virtual", that is has no actual object file contents.
bool usesSunStyleELFSectionSwitchSyntax() const
size_t find_first_not_of(char C, size_t From=0) const
Find the first character in the string that is not C or npos if not found.
bool usesELFSectionDirectiveForBSS() const
bool ShouldOmitSectionDirective(StringRef Name, const MCAsmInfo &MAI) const
ShouldOmitSectionDirective - Decides whether a '.section' directive should be printed before the sect...
void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const override
StringRef getName() const
getName - Get the symbol name.
XCORE_SHF_CP_SECTION - All sections with the "c" flag are grouped together by the linker to form the ...
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
const char * getCommentString() const
XCORE_SHF_DP_SECTION - All sections with the "d" flag are grouped together by the linker to form the ...