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)
commit71784d611d211c07efc5686ee795dfd7907ff7b5
tree16302475dc33ca705c9c5bde5b29dba0268bf12d
parentbd23647379440b0c0edd2d6e694934c71f7002f9
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.

llvm-svn: 241028
llvm/include/llvm/Object/ELFObjectFile.h
llvm/include/llvm/Object/RelocVisitor.h
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
llvm/lib/Target/X86/MCTargetDesc/X86ELFRelocationInfo.cpp