LLVM 20.0.0git
|
#include "llvm/MC/MCStreamer.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/COFF.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/DebugInfo/CodeView/SymbolRecord.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCCodeView.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCPseudoProbe.h"
#include "llvm/MC/MCRegister.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSection.h"
#include "llvm/MC/MCSectionCOFF.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCWin64EH.h"
#include "llvm/MC/MCWinEH.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <optional>
#include <utility>
Go to the source code of this file.
Functions | |
template<typename T > | |
static void | copyBytesForDefRange (SmallString< 20 > &BytePrefix, codeview::SymbolKind SymKind, const T &DefRangeHeader) |
Only call this on endian-specific types like ulittle16_t and little32_t, or structs composed of them. | |
static MCSection * | getWinCFISection (MCContext &Context, unsigned *NextWinCFIID, MCSection *MainCFISec, const MCSection *TextSec) |
static unsigned | encodeSEHRegNum (MCContext &Ctx, MCRegister Reg) |
static VersionTuple | targetVersionOrMinimumSupportedOSVersion (const Triple &Target, VersionTuple TargetVersion) |
static MCVersionMinType | getMachoVersionMinLoadCommandType (const Triple &Target) |
static VersionTuple | getMachoBuildVersionSupportedOS (const Triple &Target) |
static MachO::PlatformType | getMachoBuildVersionPlatformType (const Triple &Target) |
|
static |
Only call this on endian-specific types like ulittle16_t and little32_t, or structs composed of them.
Definition at line 365 of file MCStreamer.cpp.
References llvm::SmallVectorImpl< T >::resize().
Referenced by llvm::MCStreamer::emitCVDefRangeDirective().
|
static |
Definition at line 905 of file MCStreamer.cpp.
References llvm::MCContext::getRegisterInfo(), and llvm::MCRegisterInfo::getSEHRegNum().
Referenced by llvm::MCStreamer::emitWinCFIPushReg(), llvm::MCStreamer::emitWinCFISaveReg(), llvm::MCStreamer::emitWinCFISaveXMM(), and llvm::MCStreamer::emitWinCFISetFrame().
|
static |
Definition at line 1406 of file MCStreamer.cpp.
References assert(), llvm::Triple::Darwin, llvm::Triple::DriverKit, llvm::Triple::IOS, llvm_unreachable, llvm::Triple::MacOSX, llvm::Triple::TvOS, llvm::Triple::WatchOS, and llvm::Triple::XROS.
Referenced by llvm::MCStreamer::emitVersionForTarget().
|
static |
Definition at line 1378 of file MCStreamer.cpp.
References assert(), llvm::Triple::Darwin, llvm::Triple::DriverKit, llvm::Triple::IOS, llvm_unreachable, llvm::Triple::MacOSX, llvm::Triple::TvOS, llvm::Triple::WatchOS, and llvm::Triple::XROS.
Referenced by llvm::MCStreamer::emitVersionForTarget().
|
static |
Definition at line 1358 of file MCStreamer.cpp.
References assert(), llvm::Triple::Darwin, llvm::Triple::IOS, llvm_unreachable, llvm::Triple::MacOSX, llvm::MCVM_IOSVersionMin, llvm::MCVM_OSXVersionMin, llvm::MCVM_TvOSVersionMin, llvm::MCVM_WatchOSVersionMin, llvm::Triple::TvOS, and llvm::Triple::WatchOS.
Referenced by llvm::MCStreamer::emitVersionForTarget().
|
static |
Definition at line 857 of file MCStreamer.cpp.
References llvm::MCContext::getAsmInfo(), llvm::MCContext::getAssociativeCOFFSection(), llvm::MCContext::getCOFFSection(), llvm::MCContext::getObjectFileInfo(), llvm::MCObjectFileInfo::getTextSection(), llvm::MCAsmInfo::hasCOFFAssociativeComdats(), llvm::COFF::IMAGE_COMDAT_SELECT_ANY, and llvm::COFF::IMAGE_SCN_LNK_COMDAT.
Referenced by llvm::MCStreamer::getAssociatedPDataSection(), and llvm::MCStreamer::getAssociatedXDataSection().
|
static |
Definition at line 1351 of file MCStreamer.cpp.
References llvm::VersionTuple::empty().
Referenced by llvm::MCStreamer::emitVersionForTarget().