LLVM  5.0.0
Macros | Functions
WasmObjectWriter.cpp File Reference
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/BinaryFormat/Wasm.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAsmLayout.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixupKindInfo.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCSectionWasm.h"
#include "llvm/MC/MCSymbolWasm.h"
#include "llvm/MC/MCValue.h"
#include "llvm/MC/MCWasmObjectWriter.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/StringSaver.h"
#include <vector>
Include dependency graph for WasmObjectWriter.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "mc"
 

Functions

static unsigned PaddingFor5ByteULEB128 (uint32_t X)
 
static unsigned PaddingFor5ByteSLEB128 (int32_t X)
 
static void WritePatchableLEB (raw_pwrite_stream &Stream, uint32_t X, uint64_t Offset)
 
static void WritePatchableSLEB (raw_pwrite_stream &Stream, int32_t X, uint64_t Offset)
 
static void WriteI32 (raw_pwrite_stream &Stream, uint32_t X, uint64_t Offset)
 
static uint32_t ProvisionalValue (const WasmRelocationEntry &RelEntry)
 

Macro Definition Documentation

#define DEBUG_TYPE   "mc"

Definition at line 39 of file WasmObjectWriter.cpp.

Function Documentation

static unsigned PaddingFor5ByteSLEB128 ( int32_t  X)
static

Definition at line 293 of file WasmObjectWriter.cpp.

References llvm::getSLEB128Size().

Referenced by WritePatchableSLEB().

static unsigned PaddingFor5ByteULEB128 ( uint32_t  X)
static

Definition at line 288 of file WasmObjectWriter.cpp.

References llvm::countLeadingZeros().

Referenced by WritePatchableLEB().

static uint32_t ProvisionalValue ( const WasmRelocationEntry &  RelEntry)
static
static void WriteI32 ( raw_pwrite_stream &  Stream,
uint32_t  X,
uint64_t  Offset 
)
static
static void WritePatchableLEB ( raw_pwrite_stream &  Stream,
uint32_t  X,
uint64_t  Offset 
)
static
static void WritePatchableSLEB ( raw_pwrite_stream &  Stream,
int32_t  X,
uint64_t  Offset 
)
static