mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +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) {
|
void DwarfAccelTable::FinalizeTable(AsmPrinter *Asm, StringRef Prefix) {
|
||||||
// Create the individual hash data outputs.
|
// Create the individual hash data outputs.
|
||||||
|
Data.reserve(Entries.size());
|
||||||
for (StringMap<DataArray>::iterator EI = Entries.begin(), EE = Entries.end();
|
for (StringMap<DataArray>::iterator EI = Entries.begin(), EE = Entries.end();
|
||||||
EI != EE; ++EI) {
|
EI != EE; ++EI) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user