Add RelocVisitor support for MachO
authorKeno Fischer <kfischer@college.harvard.edu>
Sat, 30 May 2015 19:44:53 +0000 (19:44 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Sat, 30 May 2015 19:44:53 +0000 (19:44 +0000)
commit281b6941cfc896f5d675c21d1585b7074d9585d3
treec703889c3ac49c5aa132431a71ef94f66321c54c
parente00d651071326111da62344c9468dbd2312ff19b
Add RelocVisitor support for MachO

This commit adds partial support for MachO relocations to RelocVisitor.
A simple test case is added to show that relocations are indeed being
applied and that using llvm-dwarfdump on MachO files no longer errors.
Correctness is not yet tested, due to an unrelated bug in DebugInfo,
which will be fixed with appropriate testcase in a followup commit.

Differential Revision: http://reviews.llvm.org/D8148

llvm-svn: 238663
llvm/include/llvm/Object/MachO.h
llvm/include/llvm/Object/RelocVisitor.h
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/DebugInfo/Inputs/test-multiple-macho.o [new file with mode: 0644]
llvm/test/DebugInfo/Inputs/test-simple-macho.o [new file with mode: 0644]
llvm/test/DebugInfo/debuglineinfo-macho.test [new file with mode: 0644]
llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp