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)
commitdbdf667725714114182c2161d05e2038f8bdbc59
treee698c141cdfab2d1258eb5b0143118e06a2be788
parent27420dd23190e027724bfd01c331f220ff159453
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238663 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachO.h
include/llvm/Object/RelocVisitor.h
lib/Object/MachOObjectFile.cpp
test/DebugInfo/Inputs/test-multiple-macho.o [new file with mode: 0644]
test/DebugInfo/Inputs/test-simple-macho.o [new file with mode: 0644]
test/DebugInfo/debuglineinfo-macho.test [new file with mode: 0644]
tools/llvm-rtdyld/llvm-rtdyld.cpp