LLVM  8.0.1
Functions
MCAsmStreamer.cpp File Reference
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCCodeView.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixupKindInfo.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/TargetRegistry.h"
#include <cctype>
Include dependency graph for MCAsmStreamer.cpp:

Go to the source code of this file.

Functions

static int64_t truncateToSize (int64_t Value, unsigned Bytes)
 
static const chargetVersionMinDirective (MCVersionMinType Type)
 
static void EmitSDKVersionSuffix (raw_ostream &OS, const VersionTuple &SDKVersion)
 
static const chargetPlatformName (MachO::PlatformType Type)
 
static char toOctal (int X)
 
static void PrintQuotedString (StringRef Data, raw_ostream &OS)
 
static void printDwarfFileDirective (unsigned FileNo, StringRef Directory, StringRef Filename, MD5::MD5Result *Checksum, Optional< StringRef > Source, bool UseDwarfDirectory, raw_svector_ostream &OS)
 
static void PrintCFIEscape (llvm::formatted_raw_ostream &OS, StringRef Values)
 

Function Documentation

◆ EmitSDKVersionSuffix()

static void EmitSDKVersionSuffix ( raw_ostream OS,
const VersionTuple SDKVersion 
)
static

◆ getPlatformName()

static const char* getPlatformName ( MachO::PlatformType  Type)
static

Definition at line 542 of file MCAsmStreamer.cpp.

References assert(), llvm::LCOMM::ByteAlignment, E, llvm::MCStreamer::EmitAssignment(), EmitSDKVersionSuffix(), llvm::MCAsmInfo::getAssemblerDialect(), llvm::MCAsmInfo::getCOMMDirectiveAlignmentIsInBytes(), llvm::MCAsmInfo::getCommentString(), llvm::MCSection::getDummyFragment(), llvm::MCAsmInfo::getGlobalDirective(), llvm::MCAsmInfo::getLCOMMDirectiveAlignmentType(), llvm::MCSectionMachO::getSegmentName(), llvm::MCSection::getVariant(), llvm::MCAsmInfo::getWeakDirective(), llvm::MCAsmInfo::getWeakRefDirective(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::MCAsmInfo::hasNoDeadStrip(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), llvm::isPowerOf2_32(), llvm_unreachable, llvm::Log2_32(), llvm::LCOMM::Log2Alignment, llvm::MCSA_AltEntry, llvm::MCSA_ELF_TypeCommon, llvm::MCSA_ELF_TypeFunction, llvm::MCSA_ELF_TypeGnuUniqueObject, llvm::MCSA_ELF_TypeIndFunction, llvm::MCSA_ELF_TypeNoType, llvm::MCSA_ELF_TypeObject, llvm::MCSA_ELF_TypeTLS, llvm::MCSA_Global, llvm::MCSA_Hidden, llvm::MCSA_IndirectSymbol, llvm::MCSA_Internal, llvm::MCSA_Invalid, llvm::MCSA_LazyReference, llvm::MCSA_Local, llvm::MCSA_NoDeadStrip, llvm::MCSA_PrivateExtern, llvm::MCSA_Protected, llvm::MCSA_Reference, llvm::MCSA_SymbolResolver, llvm::MCSA_Weak, llvm::MCSA_WeakDefAutoPrivate, llvm::MCSA_WeakDefinition, llvm::MCSA_WeakReference, llvm::LCOMM::NoAlignment, llvm::MachO::PLATFORM_BRIDGEOS, llvm::MachO::PLATFORM_IOS, llvm::MachO::PLATFORM_IOSSIMULATOR, llvm::MachO::PLATFORM_MACOS, llvm::MachO::PLATFORM_TVOS, llvm::MachO::PLATFORM_TVOSSIMULATOR, llvm::MachO::PLATFORM_WATCHOS, llvm::MachO::PLATFORM_WATCHOSSIMULATOR, llvm::MCExpr::print(), llvm::MCSymbol::print(), Size, StorageClass, and llvm::MCSection::SV_MachO.

◆ getVersionMinDirective()

static const char* getVersionMinDirective ( MCVersionMinType  Type)
static

◆ PrintCFIEscape()

static void PrintCFIEscape ( llvm::formatted_raw_ostream OS,
StringRef  Values 
)
static

Definition at line 1474 of file MCAsmStreamer.cpp.

References assert(), llvm::StringRef::back(), llvm::tgtok::Bit, llvm::MCInst::dump_pretty(), llvm::MCGenDwarfInfo::Emit(), llvm::MCStreamer::EmitCFIAdjustCfaOffset(), llvm::MCStreamer::EmitCFIBKeyFrame(), llvm::MCStreamer::EmitCFIDefCfaRegister(), llvm::MCStreamer::EmitCFIEscape(), llvm::MCStreamer::EmitCFIGnuArgsSize(), llvm::MCStreamer::EmitCFILsda(), llvm::MCStreamer::EmitCFINegateRAState(), llvm::MCStreamer::EmitCFIOffset(), llvm::MCStreamer::EmitCFIPersonality(), llvm::MCStreamer::EmitCFIRegister(), llvm::MCStreamer::EmitCFIRelOffset(), llvm::MCStreamer::EmitCFIRememberState(), llvm::MCStreamer::EmitCFIRestore(), llvm::MCStreamer::EmitCFIRestoreState(), llvm::MCStreamer::EmitCFIReturnColumn(), llvm::MCStreamer::EmitCFISameValue(), llvm::MCStreamer::EmitCFISignalFrame(), llvm::MCStreamer::EmitCFIUndefined(), llvm::MCStreamer::EmitCFIWindowSave(), llvm::MCStreamer::EmitWinCFIAllocStack(), llvm::MCStreamer::EmitWinCFIEndChained(), llvm::MCStreamer::EmitWinCFIEndProc(), llvm::MCStreamer::EmitWinCFIEndProlog(), llvm::MCStreamer::EmitWinCFIPushFrame(), llvm::MCStreamer::EmitWinCFIPushReg(), llvm::MCStreamer::EmitWinCFISaveReg(), llvm::MCStreamer::EmitWinCFISaveXMM(), llvm::MCStreamer::EmitWinCFISetFrame(), llvm::MCStreamer::EmitWinCFIStartChained(), llvm::MCStreamer::EmitWinCFIStartProc(), llvm::MCStreamer::EmitWinEHHandler(), llvm::MCStreamer::EmitWinEHHandlerData(), llvm::StringRef::empty(), llvm::encodeULEB128(), F(), llvm::format(), From, llvm::WinEH::FrameInfo::Function, llvm::MCFixup::getKind(), llvm::MCFixup::getOffset(), llvm::MCSubtargetInfo::getSchedInfoStr(), llvm::MCSymbol::getSection(), llvm::MCSymbolRefExpr::getSymbol(), llvm::MCFixup::getValue(), Info, llvm::MCAsmInfo::isLittleEndian(), llvm::MCFixupKindInfo::Name, Name, llvm::MCExpr::print(), llvm::MCSymbol::print(), Register, llvm::SmallVectorImpl< T >::resize(), SI, Size, llvm::SmallVectorBase::size(), llvm::StringRef::size(), llvm::StringRef::substr(), llvm::MCFixupKindInfo::TargetOffset, and llvm::MCFixupKindInfo::TargetSize.

◆ printDwarfFileDirective()

static void printDwarfFileDirective ( unsigned  FileNo,
StringRef  Directory,
StringRef  Filename,
MD5::MD5Result Checksum,
Optional< StringRef Source,
bool  UseDwarfDirectory,
raw_svector_ostream OS 
)
static

◆ PrintQuotedString()

static void PrintQuotedString ( StringRef  Data,
raw_ostream OS 
)
static

◆ toOctal()

static char toOctal ( int  X)
inlinestatic

Definition at line 840 of file MCAsmStreamer.cpp.

◆ truncateToSize()

static int64_t truncateToSize ( int64_t  Value,
unsigned  Bytes 
)
inlinestatic