[ELF][Writer] Let std::vector handle allocating space instead of reserving tiny portions.

llvm-svn: 176916
This commit is contained in:
Michael J. Spencer 2013-03-13 00:30:08 +00:00
parent 1ad66dbae4
commit c4e45f855c
1 changed files with 0 additions and 6 deletions

View File

@ -575,12 +575,6 @@ private:
// Add Rela (those with r_addend) references:
auto rari = _relocationAddendRefences.find(sectionName);
auto rri = _relocationReferences.find(sectionName);
unsigned refs = 0;
if (rari != _relocationAddendRefences.end())
refs += rari->second.size();
if (rri != _relocationReferences.end())
refs += rri->second.size();
_references.reserve(_references.size() + refs);
if (rari != _relocationAddendRefences.end())
for (auto &rai : rari->second) {
if (!((rai->r_offset >= symbol->st_value) &&