forked from OSchip/llvm-project
DwarfAccelTable: We know how many hashes we have in the output, just reserve the precise number
llvm-svn: 230865
This commit is contained in:
parent
48ea372d90
commit
49a1132976
|
@ -70,6 +70,7 @@ static bool compareDIEs(const DwarfAccelTable::HashDataContents *A,
|
|||
|
||||
void DwarfAccelTable::FinalizeTable(AsmPrinter *Asm, StringRef Prefix) {
|
||||
// Create the individual hash data outputs.
|
||||
Data.reserve(Entries.size());
|
||||
for (StringMap<DataArray>::iterator EI = Entries.begin(), EE = Entries.end();
|
||||
EI != EE; ++EI) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue