mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
DwarfAccelTable: We know how many hashes we have in the output, just reserve the precise number
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cdef9818bc
commit
f4cff31d3c
@ -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
Block a user