#include #include #include #include #include ">

LLVM: lib/MC/MachObjectWriter.cpp File Reference (original) (raw)

#include "[llvm/ADT/DenseMap.h](DenseMap%5F8h%5Fsource.html)"
#include "[llvm/ADT/Twine.h](Twine%5F8h%5Fsource.html)"
#include "[llvm/BinaryFormat/MachO.h](BinaryFormat%5F2MachO%5F8h%5Fsource.html)"
#include "[llvm/MC/MCAsmBackend.h](MCAsmBackend%5F8h%5Fsource.html)"
#include "[llvm/MC/MCAsmInfoDarwin.h](MCAsmInfoDarwin%5F8h%5Fsource.html)"
#include "[llvm/MC/MCAssembler.h](MCAssembler%5F8h%5Fsource.html)"
#include "[llvm/MC/MCContext.h](MCContext%5F8h%5Fsource.html)"
#include "[llvm/MC/MCDirectives.h](MCDirectives%5F8h%5Fsource.html)"
#include "[llvm/MC/MCExpr.h](MCExpr%5F8h%5Fsource.html)"
#include "[llvm/MC/MCMachObjectWriter.h](MCMachObjectWriter%5F8h%5Fsource.html)"
#include "[llvm/MC/MCObjectFileInfo.h](MCObjectFileInfo%5F8h%5Fsource.html)"
#include "[llvm/MC/MCObjectWriter.h](MCObjectWriter%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSection.h](MCSection%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSectionMachO.h](MCSectionMachO%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSymbol.h](MCSymbol%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSymbolMachO.h](MCSymbolMachO%5F8h%5Fsource.html)"
#include "[llvm/MC/MCValue.h](MCValue%5F8h%5Fsource.html)"
#include "[llvm/Support/Alignment.h](Alignment%5F8h%5Fsource.html)"
#include "[llvm/Support/Casting.h](Casting%5F8h%5Fsource.html)"
#include "[llvm/Support/Debug.h](Support%5F2Debug%5F8h%5Fsource.html)"
#include "[llvm/Support/ErrorHandling.h](llvm%5F2Support%5F2ErrorHandling%5F8h%5Fsource.html)"
#include "[llvm/Support/MathExtras.h](MathExtras%5F8h%5Fsource.html)"
#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Macros
#define DEBUG_TYPE "mc"
Functions
static bool isSymbolLinkerVisible (const MCSymbol &Symbol)
static unsigned ComputeLinkerOptionsLoadCommandSize (const std::vector< std::string > &Options, bool is64Bit)
static bool isFixupTargetValid (const MCValue &Target)
static MachO::LoadCommandType getLCFromMCVM (MCVersionMinType Type)

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "mc"

Definition at line 41 of file MachObjectWriter.cpp.

Function Documentation

ComputeLinkerOptionsLoadCommandSize()

unsigned ComputeLinkerOptionsLoadCommandSize ( const std::vector< std::string > & Options, bool is64Bit ) static

Definition at line 467 of file MachObjectWriter.cpp.

References llvm::alignTo(), is64Bit(), Options, and Size.

Referenced by llvm::MachObjectWriter::writeLinkerOptionsLoadCommand(), and llvm::MachObjectWriter::writeObject().

getLCFromMCVM()

MachO::LoadCommandType getLCFromMCVM ( MCVersionMinType Type) static

Definition at line 765 of file MachObjectWriter.cpp.

References llvm_unreachable, llvm::MCVM_IOSVersionMin, llvm::MCVM_OSXVersionMin, llvm::MCVM_TvOSVersionMin, and llvm::MCVM_WatchOSVersionMin.

Referenced by llvm::MachObjectWriter::writeObject().

isFixupTargetValid()

bool isFixupTargetValid ( const MCValue & Target) static

Definition at line 500 of file MachObjectWriter.cpp.

Referenced by llvm::MachObjectWriter::recordRelocation().

isSymbolLinkerVisible()

bool isSymbolLinkerVisible ( const MCSymbol & Symbol) static

Definition at line 140 of file MachObjectWriter.cpp.

Referenced by llvm::MachObjectWriter::computeSymbolTable(), and llvm::MachObjectWriter::getAtom().