LLVM  6.0.0svn
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>
Include dependency graph for X86ELFObjectWriter.cpp:

Go to the source code of this file.

Enumerations

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

Functions

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

Enumeration Type Documentation

◆ X86_32RelType

Enumerator
RT32_32 
RT32_16 
RT32_8 

Definition at line 200 of file X86ELFObjectWriter.cpp.

◆ X86_64RelType

Enumerator
RT64_64 
RT64_32 
RT64_32S 
RT64_16 
RT64_8 

Definition at line 48 of file X86ELFObjectWriter.cpp.

Function Documentation

◆ checkIs32()

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

Definition at line 87 of file X86ELFObjectWriter.cpp.

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

Referenced by getRelocType64().

◆ getRelocType32()

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

◆ getRelocType64()

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

◆ getType32()

static X86_32RelType getType32 ( X86_64RelType  T)
static

Definition at line 202 of file X86ELFObjectWriter.cpp.

References llvm_unreachable, RT32_16, RT32_32, RT32_8, RT64_16, RT64_32, RT64_32S, RT64_64, and RT64_8.

Referenced by getRelocType32().

◆ getType64()

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