LLVM
8.0.1
|
This file handles Wasm-specific object emission, converting LLVM's internal fixups into the appropriate relocations. More...
#include "MCTargetDesc/WebAssemblyFixupKinds.h"
#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
#include "llvm/BinaryFormat/Wasm.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCFixup.h"
#include "llvm/MC/MCFixupKindInfo.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/ErrorHandling.h"
Go to the source code of this file.
Functions | |
static bool | IsFunctionExpr (const MCExpr *Expr) |
static bool | IsFunctionType (const MCValue &Target) |
static const MCSection * | GetFixupSection (const MCExpr *Expr) |
static bool | IsGlobalType (const MCValue &Target) |
static bool | IsEventType (const MCValue &Target) |
This file handles Wasm-specific object emission, converting LLVM's internal fixups into the appropriate relocations.
Definition in file WebAssemblyWasmObjectWriter.cpp.
Definition at line 65 of file WebAssemblyWasmObjectWriter.cpp.
Referenced by IsEventType().
Definition at line 89 of file WebAssemblyWasmObjectWriter.cpp.
References Fixup, llvm::WebAssembly::fixup_code_sleb128_i32, llvm::WebAssembly::fixup_code_sleb128_i64, llvm::WebAssembly::fixup_code_uleb128_i32, llvm::FK_Data_4, llvm::FK_Data_8, GetFixupSection(), llvm::MCFixup::getKind(), llvm::MCSymbolRefExpr::getKind(), getRelocType(), llvm::MCValue::getSymA(), llvm::MCFixup::getValue(), IsFunctionExpr(), IsFunctionType(), IsGlobalType(), llvm_unreachable, llvm::ARMBuildAttrs::Section, and llvm::MCSymbolRefExpr::VK_WebAssembly_EVENT.
Definition at line 47 of file WebAssemblyWasmObjectWriter.cpp.
Referenced by IsEventType().
Definition at line 60 of file WebAssemblyWasmObjectWriter.cpp.
References llvm::MCSymbolRefExpr::getKind(), llvm::MCValue::getSymA(), and llvm::MCSymbolRefExpr::VK_WebAssembly_TYPEINDEX.
Referenced by IsEventType().
Definition at line 84 of file WebAssemblyWasmObjectWriter.cpp.
References llvm::MCSymbolRefExpr::getKind(), llvm::MCValue::getSymA(), and llvm::MCSymbolRefExpr::VK_WebAssembly_GLOBAL.
Referenced by IsEventType().