LLVM 20.0.0git
Macros | Functions
MCAsmStreamer.cpp File Reference
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/DebugInfo/CodeView/SymbolRecord.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/MCPseudoProbe.h"
#include "llvm/MC/MCRegister.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbolXCOFF.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Casting.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 <algorithm>
#include <optional>
#include "llvm/BinaryFormat/MachO.def"

Go to the source code of this file.

Macros

#define PLATFORM(platform, id, name, build_name, target, tapi_target, marketing)
 

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 bool isPrintableString (StringRef Data)
 
static char toOctal (int X)
 
static void PrintByteList (StringRef Data, raw_ostream &OS, MCAsmInfo::AsmCharLiteralSyntax ACLS)
 
static void PrintCFIEscape (llvm::formatted_raw_ostream &OS, StringRef Values)
 

Macro Definition Documentation

◆ PLATFORM

#define PLATFORM (   platform,
  id,
  name,
  build_name,
  target,
  tapi_target,
  marketing 
)
Value:
case MachO::PLATFORM_##platform: \
return #build_name;

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 649 of file MCAsmStreamer.cpp.

References llvm_unreachable.

◆ getVersionMinDirective()

static const char * getVersionMinDirective ( MCVersionMinType  Type)
static

◆ isPrintableString()

static bool isPrintableString ( StringRef  Data)
inlinestatic

Definition at line 1146 of file MCAsmStreamer.cpp.

References llvm::CallingConv::C, and llvm::make_range().

◆ PrintByteList()

static void PrintByteList ( StringRef  Data,
raw_ostream OS,
MCAsmInfo::AsmCharLiteralSyntax  ACLS 
)
static

◆ PrintCFIEscape()

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

◆ toOctal()

static char toOctal ( int  X)
inlinestatic

Definition at line 1155 of file MCAsmStreamer.cpp.

References X.

Referenced by PrintByteList().

◆ truncateToSize()

static int64_t truncateToSize ( int64_t  Value,
unsigned  Bytes 
)
inlinestatic

Definition at line 474 of file MCAsmStreamer.cpp.

References assert().