[WebAssembly] Define WebAssembly-specific relocation codes.
authorDan Gohman <dan433584@gmail.com>
Mon, 11 Jan 2016 23:38:05 +0000 (23:38 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 11 Jan 2016 23:38:05 +0000 (23:38 +0000)
commitd73b41ae220128db3f585f27e39633426675e304
treee21cb271cb2a0ab38a4640809cde092fb50a913f
parent4e5af8fec07665154fd7b290c4ce2ab16000eee3
[WebAssembly] Define WebAssembly-specific relocation codes.

Currently WebAssembly has two kinds of relocations; data addresses and
function addresses. This adds ELF relocations for them, as well as an
MC symbol kind to indicate which type of relocation is needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257416 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
include/llvm/CodeGen/AsmPrinter.h
include/llvm/MC/MCExpr.h
include/llvm/Support/ELF.h
include/llvm/Support/ELFRelocs/WebAssembly.def [new file with mode: 0644]
lib/MC/MCExpr.cpp
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyELFObjectWriter.cpp
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
lib/Target/WebAssembly/WebAssemblyMCInstLower.h
test/CodeGen/WebAssembly/call.ll
test/CodeGen/WebAssembly/f32.ll
test/CodeGen/WebAssembly/f64.ll
test/CodeGen/WebAssembly/frem.ll
test/CodeGen/WebAssembly/global.ll
test/CodeGen/WebAssembly/returned.ll
test/CodeGen/WebAssembly/signext-zeroext.ll
test/CodeGen/WebAssembly/switch.ll
test/CodeGen/WebAssembly/unreachable.ll
test/CodeGen/WebAssembly/unused-argument.ll
test/CodeGen/WebAssembly/varargs.ll