LLVM 20.0.0git
|
This represents a section on Windows. More...
#include "llvm/MC/MCSectionCOFF.h"
Static Public Member Functions | |
static bool | isImplicitlyDiscardable (StringRef Name) |
static bool | classof (const MCSection *S) |
Friends | |
class | MCContext |
Additional Inherited Members | |
Public Types inherited from llvm::MCSection | |
enum | SectionVariant { SV_COFF = 0 , SV_ELF , SV_GOFF , SV_MachO , SV_Wasm , SV_XCOFF , SV_SPIRV , SV_DXContainer } |
enum | BundleLockStateType { NotBundleLocked , BundleLocked , BundleLockedAlignToEnd } |
Express the state of bundle locked groups while emitting code. More... | |
Public Attributes inherited from llvm::MCSection | |
friend | MCAssembler |
friend | MCObjectStreamer |
Static Public Attributes inherited from llvm::MCSection | |
static constexpr unsigned | NonUniqueID = ~0U |
Protected Member Functions inherited from llvm::MCSection | |
MCSection (SectionVariant V, StringRef Name, bool IsText, bool IsVirtual, MCSymbol *Begin) | |
~MCSection () | |
Protected Attributes inherited from llvm::MCSection | |
StringRef | Name |
SectionVariant | Variant |
This represents a section on Windows.
Definition at line 27 of file MCSectionCOFF.h.
Definition at line 91 of file MCSectionCOFF.h.
References llvm::MCSection::getVariant(), and llvm::MCSection::SV_COFF.
|
inline |
Definition at line 69 of file MCSectionCOFF.h.
References Characteristics.
Referenced by llvm::MCContext::getAssociativeCOFFSection(), and printSwitchToSection().
|
inline |
Definition at line 70 of file MCSectionCOFF.h.
Referenced by llvm::WinCOFFWriter::writeObject().
Definition at line 81 of file MCSectionCOFF.h.
|
inline |
Definition at line 71 of file MCSectionCOFF.h.
References Selection.
|
overridevirtual |
Reimplemented from llvm::MCSection.
Definition at line 111 of file MCSectionCOFF.cpp.
Definition at line 87 of file MCSectionCOFF.h.
References llvm::MCSection::Name, and llvm::StringRef::starts_with().
Referenced by printSwitchToSection().
|
overridevirtual |
Implements llvm::MCSection.
Definition at line 37 of file MCSectionCOFF.cpp.
References assert(), getCharacteristics(), llvm::MCSection::getName(), llvm::COFF::IMAGE_COMDAT_SELECT_ANY, llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, llvm::COFF::IMAGE_COMDAT_SELECT_EXACT_MATCH, llvm::COFF::IMAGE_COMDAT_SELECT_LARGEST, llvm::COFF::IMAGE_COMDAT_SELECT_NEWEST, llvm::COFF::IMAGE_COMDAT_SELECT_NODUPLICATES, llvm::COFF::IMAGE_COMDAT_SELECT_SAME_SIZE, llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA, llvm::COFF::IMAGE_SCN_LNK_COMDAT, llvm::COFF::IMAGE_SCN_LNK_INFO, llvm::COFF::IMAGE_SCN_LNK_REMOVE, llvm::COFF::IMAGE_SCN_MEM_DISCARDABLE, llvm::COFF::IMAGE_SCN_MEM_EXECUTE, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::COFF::IMAGE_SCN_MEM_SHARED, llvm::COFF::IMAGE_SCN_MEM_WRITE, isImplicitlyDiscardable(), OS, llvm::MCSymbol::print(), and shouldOmitSectionDirective().
void MCSectionCOFF::setSelection | ( | int | Selection | ) | const |
Definition at line 31 of file MCSectionCOFF.cpp.
References assert(), llvm::COFF::IMAGE_SCN_LNK_COMDAT, and Selection.
Decides whether a '.section' directive should be printed before the section name.
Definition at line 19 of file MCSectionCOFF.cpp.
References llvm::MCSection::Name.
Referenced by printSwitchToSection().
|
overridevirtual |
Return true if a .align directive should use "optimized nops" to fill instead of 0s.
Implements llvm::MCSection.
Definition at line 109 of file MCSectionCOFF.cpp.
References llvm::MCSection::isText().
|
friend |
Definition at line 51 of file MCSectionCOFF.h.