Removed unnecessary parameter.

llvm-svn: 187317
This commit is contained in:
Rui Ueyama 2013-07-28 01:50:24 +00:00
parent 3e50c68956
commit fbfd102b9e
1 changed files with 1 additions and 2 deletions

View File

@ -269,7 +269,6 @@ private:
/// Find the atom that is at \p targetOffset in \p section. It is assumed
/// that \p atoms are sorted by position in the section.
COFFDefinedAtom *findAtomAt(uint32_t targetOffset,
const coff_section *section,
const vector<COFFDefinedAtom *> &atoms) const {
assert(std::is_sorted(atoms.begin(), atoms.end(),
[](const COFFDefinedAtom * a,
@ -318,7 +317,7 @@ private:
symbolToAtom, targetAtom))
return ec;
COFFDefinedAtom *atom = findAtomAt(rel->VirtualAddress, section, atoms);
COFFDefinedAtom *atom = findAtomAt(rel->VirtualAddress, atoms);
uint32_t offsetInAtom = itemAddress - atom->originalOffset();
assert(offsetInAtom < atom->size());
atom->addReference(std::unique_ptr<COFFReference>(