LLVM  7.0.0svn
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 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

◆ getPlatformName()

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

Definition at line 519 of file MCAsmStreamer.cpp.

References assert(), llvm::LCOMM::ByteAlignment, E, llvm::MCStreamer::EmitAssignment(), llvm::MCAsmInfo::getAssemblerDialect(), llvm::MCAsmInfo::getCOMMDirectiveAlignmentIsInBytes(), llvm::MCAsmInfo::getCommentString(), llvm::MCSection::getDummyFragment(), llvm::MCAsmInfo::getGlobalDirective(), llvm::MCAsmInfo::getLCOMMDirectiveAlignmentType(), llvm::MCSectionMachO::getSectionName(), llvm::MCSectionMachO::getSegmentName(), 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_MACOS, llvm::MachO::PLATFORM_TVOS, llvm::MachO::PLATFORM_WATCHOS, llvm::MCExpr::print(), llvm::MCSymbol::print(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, and StorageClass.

◆ getVersionMinDirective()

static const char* getVersionMinDirective ( MCVersionMinType  Type)
static

◆ PrintCFIEscape()

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

Definition at line 1429 of file MCAsmStreamer.cpp.

References assert(), llvm::StringRef::back(), llvm::tgtok::Bit, llvm::MCInst::dump_pretty(), llvm::MCGenDwarfInfo::Emit(), llvm::MCStreamer::EmitCFIAdjustCfaOffset(), llvm::MCStreamer::EmitCFIDefCfaRegister(), llvm::MCStreamer::EmitCFIEscape(), llvm::MCStreamer::EmitCFIGnuArgsSize(), llvm::MCStreamer::EmitCFILsda(), 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(), llvm::WinEH::FrameInfo::Function, llvm::MCFixup::getKind(), llvm::MCFixup::getOffset(), llvm::MCSubtargetInfo::getSchedInfoStr(), llvm::MCSymbol::getSection(), llvm::MCSymbolRefExpr::getSymbol(), llvm::MCFixup::getValue(), llvm::MCAsmInfo::isLittleEndian(), llvm::MCFixupKindInfo::Name, llvm::MCExpr::print(), llvm::MCSymbol::print(), Register, llvm::SmallVectorImpl< T >::resize(), SI, llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::StringRef::size(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::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 794 of file MCAsmStreamer.cpp.

◆ truncateToSize()

static int64_t truncateToSize ( int64_t  Value,
unsigned  Bytes 
)
inlinestatic