22 if (Name.find_first_not_of(
"0123456789_."
23 "abcdefghijklmnopqrstuvwxyz"
24 "ABCDEFGHIJKLMNOPQRSTUVWXYZ") == Name.npos) {
29 for (
const char *
B = Name.begin(), *
E = Name.end();
B <
E; ++
B) {
49 OS <<
'\t' << Sec.getName();
51 OS <<
'\t' << Subsection;
60 unsigned SegmentFlags = Sec.getSegmentFlags();
62 if (Sec.isWasmData() && Sec.getPassive())
92 OS <<
",unique," << Sec.getUniqueID();
97 OS <<
"\t.subsection\t" << Subsection <<
'\n';
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)
MCAsmInfoWasm(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 HasNoDeadStrip
True if this target supports the MachO .no_dead_strip directive.
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.
StringRef getCommentString() const
bool HasIdentDirective
True if the target has a .ident directive, this is true for ELF targets.
void(* PrintSwitchToSectionFn)(const MCAsmInfo &, const MCSection &, uint32_t Subsection, const Triple &, raw_ostream &)
bool isSectionDirective(StringRef SecName) const
This represents a section on wasm.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Represent a constant reference to a string, i.e.
Triple - Helper class for working with autoconf configuration names.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.