29 if (Name.find_first_not_of(
"0123456789_."
30 "abcdefghijklmnopqrstuvwxyz"
31 "ABCDEFGHIJKLMNOPQRSTUVWXYZ") == Name.npos) {
36 for (
const char *
B = Name.begin(), *
E = Name.end();
B <
E; ++
B) {
55 unsigned Type = Sec.getType();
56 unsigned Flags = Sec.getFlags();
58 OS <<
'\t' << Sec.getName();
60 OS <<
'\t' << Subsection;
118 }
else if (
T.isARM() ||
T.isThumb()) {
121 }
else if (
T.isAArch64()) {
147 OS <<
"preinit_array";
163 OS <<
"llvm_linker_options";
165 OS <<
"llvm_call_graph_profile";
167 OS <<
"llvm_dependent_libraries";
169 OS <<
"llvm_sympart";
171 OS <<
"llvm_bb_addr_map";
173 OS <<
"llvm_offloading";
177 OS <<
"llvm_jt_sizes";
179 OS <<
"llvm_cfi_jump_table";
181 OS <<
"llvm_call_graph";
183 OS <<
"llvm_dyndbg_elf";
187 if (
unsigned ES = Sec.getEntrySize()) {
194 if (
const MCSymbol *Sym = Sec.getLinkedToSymbol())
202 printName(OS, Sec.getGroup()->getName());
208 OS <<
",unique," << Sec.getUniqueID();
213 OS <<
"\t.subsection\t" << Subsection;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static void printSwitchToSection(const MCAsmInfo &MAI, const MCSection &Section, uint32_t Subsection, const Triple &T, raw_ostream &OS)
static void printName(raw_ostream &OS, StringRef Name)
MCAsmInfoELF(const Triple &TT, const MCTargetOptions &Options)
This class is intended to be used as a base class for asm properties and features specific to the tar...
StringRef InternalSymbolPrefix
For internal use by compiler and assembler, not meant to be visible externally.
bool usesSunStyleELFSectionSwitchSyntax() const
MCAsmInfo(const MCTargetOptions &Options)
void printSwitchToSection(const MCSection &Sec, uint32_t Subsection, const Triple &T, raw_ostream &OS) const
const char * WeakRefDirective
This directive, if non-null, is used to declare a global as being a weak undefined symbol.
SmallDenseSet< StringRef, 8 > SectionDirectives
Sections whose name also is supported as a directive without an explicit ".section" directive.
StringRef getCommentString() const
bool HasPreferredAlignment
bool HasIdentDirective
True if the target has a .ident directive, this is true for ELF targets.
bool EmitELFStackSection
Whether a section indicating a (non-)executable stack should be emitted.
void(* PrintSwitchToSectionFn)(const MCAsmInfo &, const MCSection &, uint32_t Subsection, const Triple &, raw_ostream &)
bool isSectionDirective(StringRef SecName) const
This represents a section on linux, lots of unix variants and some bare metal systems.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Represent a constant reference to a string, i.e.
Triple - Helper class for working with autoconf configuration names.
static Twine utohexstr(uint64_t Val)
The instances of the Type class are immutable: once they are created, they are never changed.
This class implements an extremely fast bulk output stream that can only output to a stream.
@ XCORE_SHF_DP_SECTION
All sections with the "d" flag are grouped together by the linker to form the data section and the dp...
@ XCORE_SHF_CP_SECTION
All sections with the "c" flag are grouped together by the linker to form the constant pool and the c...
@ SHT_LLVM_DEPENDENT_LIBRARIES
@ SHT_LLVM_LINKER_OPTIONS
@ SHT_LLVM_CALL_GRAPH_PROFILE
@ SHT_LLVM_CFI_JUMP_TABLE
This is an optimization pass for GlobalISel generic memory operations.