Make getRelocationSection MachO only.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Jun 2015 17:54:28 +0000 (17:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Jun 2015 17:54:28 +0000 (17:54 +0000)
commit776f86420e7b89dd33414a34310dcbf246feefeb
tree390e28a07baa8849da39f183f7fb85a8670023a5
parent260366437ceaf657350c83068adb4c50e1a123bb
Make getRelocationSection MachO only.

There are 3 types of relocations on MachO
* Scattered
* Section based
* Symbol based

On ELF and COFF relocations are symbol based.

We were in the strange situation that we abstracted over two of them. This makes
section based relocations MachO only.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240149 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/MachO.h
include/llvm/Object/ObjectFile.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/Object/COFFObjectFile.cpp
tools/llvm-readobj/MachODumper.cpp