OSDN Git Service

Cleanup getRelocationAddend.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 30 Jun 2015 00:33:59 +0000 (00:33 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 30 Jun 2015 00:33:59 +0000 (00:33 +0000)
commitde4d84470408a14ec1dfc33df38de8730cefc561
tree038d7164b28c84894d809506343ab9a105e97080
parent1a5b04c7250ea502e307076cf99bd2514e1d5fd0
Cleanup getRelocationAddend.

Realistically, this will be returning ErrorOr for some time as refactoring the
user code to check once per section will take some time.

Given that, use it for checking if a relocation has addend or not.

While at it, add ELFRelocationRef to simplify the users.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241028 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/RelocVisitor.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp