29 if (!Sec.getCOMDATSymbol() && !Sec.isUnique() &&
31 OS <<
'\t' << Sec.getName() <<
'\n';
35 OS <<
"\t.section\t" << Sec.getName() <<
",\"";
53 !Sec.isImplicitlyDiscardable(Sec.getName()))
60 if (Sec.isUnique() && !Sec.getCOMDATSymbol())
61 OS <<
",unique," << Sec.getUniqueID();
64 if (Sec.getCOMDATSymbol())
67 OS <<
"\n\t.linkonce\t";
68 switch (Sec.getSelection()) {
79 OS <<
"same_contents";
91 assert(
false &&
"unsupported COFF selection type");
94 if (
const MCSymbol *Sym = Sec.getCOMDATSymbol()) {
100 if (Sec.isUnique() && Sec.getCOMDATSymbol())
101 OS <<
",unique," << Sec.getUniqueID();
160 assert(Selection != 0 &&
"invalid COMDAT selection type");
161 this->Selection = Selection;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static void printSwitchToSection(const MCAsmInfo &MAI, const MCSection &Section, uint32_t, const Triple &T, raw_ostream &OS)
MCAsmInfoCOFF(const MCTargetOptions &Options)
MCAsmInfoGNUCOFF(const MCTargetOptions &Options)
MCAsmInfoMicrosoft(const MCTargetOptions &Options)
This class is intended to be used as a base class for asm properties and features specific to the tar...
bool NeedsDwarfSectionOffsetDirective
MCSymbolAttr ProtectedVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare a symbol as having protected visibility.
bool AvoidWeakIfComdat
True if we should mark symbols as global instead of weak, for weak*/linkonce*, if the symbol has a c...
MCAsmInfo(const MCTargetOptions &Options)
void printSwitchToSection(const MCSection &Sec, uint32_t Subsection, const Triple &T, raw_ostream &OS) const
bool UseLogicalShr
True if the integrated assembler should interpret 'a >> b' constant expressions as logical rather tha...
LCOMM::LCOMMType LCOMMDirectiveAlignmentType
Describes if the .lcomm directive for the target supports an alignment argument and how it is interpr...
bool HasCOFFComdatConstants
True if this is a non-GNU COFF target.
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.
bool HasDotTypeDotSizeDirective
True if the target has .type and .size directives, this is true for most ELF targets.
bool HasCOFFAssociativeComdats
True if this is a non-GNU COFF target.
bool SupportsDebugInformation
True if target supports emission of debugging information.
MCSymbolAttr HiddenDeclarationVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare an undefined symbol as having hidden visibili...
bool HasSingleParameterDotFile
True if the target has a single parameter .file directive, this is true for ELF targets.
bool COMMDirectiveAlignmentIsInBytes
True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n).
void(* PrintSwitchToSectionFn)(const MCAsmInfo &, const MCSection &, uint32_t Subsection, const Triple &, raw_ostream &)
MCSymbolAttr HiddenVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare a symbol as having hidden visibility.
bool isSectionDirective(StringRef SecName) const
This represents a section on Windows.
LLVM_ABI void setSelection(int Selection) const
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 ...
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.
@ IMAGE_SCN_CNT_UNINITIALIZED_DATA
@ IMAGE_SCN_MEM_DISCARDABLE
@ IMAGE_SCN_CNT_INITIALIZED_DATA
@ IMAGE_COMDAT_SELECT_NODUPLICATES
@ IMAGE_COMDAT_SELECT_LARGEST
@ IMAGE_COMDAT_SELECT_NEWEST
@ IMAGE_COMDAT_SELECT_SAME_SIZE
@ IMAGE_COMDAT_SELECT_ASSOCIATIVE
@ IMAGE_COMDAT_SELECT_EXACT_MATCH
@ IMAGE_COMDAT_SELECT_ANY
This is an optimization pass for GlobalISel generic memory operations.
@ MCSA_Invalid
Not a valid directive.