Replace ObjRelocationInfo with relocation_iterator.

For MachO we need information that is not represented in ObjRelocationInfo.
Instead of copying the bits we think are needed from a relocation_iterator,
just pass the relocation_iterator down to the format specific functions.

No functionality change yet as we still drop the information once
processRelocationRef returns.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-04-29 14:44:23 +00:00
parent f4fc9b1753
commit efa91f6475
6 changed files with 59 additions and 65 deletions

View File

@@ -68,7 +68,8 @@ protected:
uint32_t Type,
int64_t Addend);
virtual void processRelocationRef(const ObjRelocationInfo &Rel,
virtual void processRelocationRef(unsigned SectionID,
relocation_iterator RelI,
ObjectImage &Obj,
ObjSectionToIDMap &ObjSectionToID,
const SymbolTableMap &Symbols,