LLVM 19.0.0git
Enumerations | Functions
X86ELFObjectWriter.cpp File Reference
#include "MCTargetDesc/X86FixupKinds.h"
#include "MCTargetDesc/X86MCTargetDesc.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCELFObjectWriter.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixup.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/ErrorHandling.h"
#include <cassert>
#include <cstdint>

Go to the source code of this file.

Enumerations

enum  X86_64RelType {
  RT64_NONE , RT64_64 , RT64_32 , RT64_32S ,
  RT64_16 , RT64_8
}
 
enum  X86_32RelType { RT32_NONE , RT32_32 , RT32_16 , RT32_8 }
 

Functions

static X86_64RelType getType64 (MCFixupKind Kind, MCSymbolRefExpr::VariantKind &Modifier, bool &IsPCRel)
 
static void checkIs32 (MCContext &Ctx, SMLoc Loc, X86_64RelType Type)
 
static void checkIs64 (MCContext &Ctx, SMLoc Loc, X86_64RelType Type)
 
static unsigned getRelocType64 (MCContext &Ctx, SMLoc Loc, MCSymbolRefExpr::VariantKind Modifier, X86_64RelType Type, bool IsPCRel, MCFixupKind Kind)
 
static unsigned getRelocType32 (MCContext &Ctx, SMLoc Loc, MCSymbolRefExpr::VariantKind Modifier, X86_32RelType Type, bool IsPCRel, MCFixupKind Kind)
 

Enumeration Type Documentation

◆ X86_32RelType

Enumerator
RT32_NONE 
RT32_32 
RT32_16 
RT32_8 

Definition at line 231 of file X86ELFObjectWriter.cpp.

◆ X86_64RelType

Enumerator
RT64_NONE 
RT64_64 
RT64_32 
RT64_32S 
RT64_16 
RT64_8 

Definition at line 47 of file X86ELFObjectWriter.cpp.

Function Documentation

◆ checkIs32()

static void checkIs32 ( MCContext Ctx,
SMLoc  Loc,
X86_64RelType  Type 
)
static

Definition at line 91 of file X86ELFObjectWriter.cpp.

References llvm::MCContext::reportError(), and RT64_32.

Referenced by getRelocType64().

◆ checkIs64()

static void checkIs64 ( MCContext Ctx,
SMLoc  Loc,
X86_64RelType  Type 
)
static

Definition at line 97 of file X86ELFObjectWriter.cpp.

References llvm::MCContext::reportError(), and RT64_64.

Referenced by getRelocType64().

◆ getRelocType32()

static unsigned getRelocType32 ( MCContext Ctx,
SMLoc  Loc,
MCSymbolRefExpr::VariantKind  Modifier,
X86_32RelType  Type,
bool  IsPCRel,
MCFixupKind  Kind 
)
static

◆ getRelocType64()

static unsigned getRelocType64 ( MCContext Ctx,
SMLoc  Loc,
MCSymbolRefExpr::VariantKind  Modifier,
X86_64RelType  Type,
bool  IsPCRel,
MCFixupKind  Kind 
)
static

◆ getType64()

static X86_64RelType getType64 ( MCFixupKind  Kind,
MCSymbolRefExpr::VariantKind Modifier,
bool IsPCRel 
)
static