#include "MCTargetDesc/PPCFixupKinds.h"
#include "MCTargetDesc/PPCMCTargetDesc.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCELFObjectWriter.h"
#include "llvm/MC/MCFixupKindInfo.h"
#include "llvm/MC/MCMachObjectWriter.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/MC/MCSymbolXCOFF.h"
#include "llvm/MC/MCValue.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/ErrorHandling.h"
usingnamespacellvm;
static uint64_t adjustFixupValue(unsigned Kind, uint64_t Value) { … }
static unsigned getFixupKindNumBytes(unsigned Kind) { … }
namespace {
class PPCAsmBackend : public MCAsmBackend { … };
}
namespace {
class ELFPPCAsmBackend : public PPCAsmBackend { … };
class XCOFFPPCAsmBackend : public PPCAsmBackend { … };
}
std::optional<MCFixupKind>
ELFPPCAsmBackend::getFixupKind(StringRef Name) const { … }
std::optional<MCFixupKind>
XCOFFPPCAsmBackend::getFixupKind(StringRef Name) const { … }
MCAsmBackend *llvm::createPPCAsmBackend(const Target &T,
const MCSubtargetInfo &STI,
const MCRegisterInfo &MRI,
const MCTargetOptions &Options) { … }