Don't create a temporary DenseMap for each input .eh_frame.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Apr 2018 20:19:28 +0000 (20:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Apr 2018 20:19:28 +0000 (20:19 +0000)
commitbd4d2acb1103aedaffefb3faa9d3fd0b1efd0e01
tree986749326ab71fd10fb5b85c6164d6ba97760973
parenta05e8d3e68b820465266475928a5bc9e23b2f389
Don't create a temporary DenseMap for each input .eh_frame.

These maps are small, but we are creating an destroying one for each
input .eh_frame.

This patch reduces the total memory allocation from 765.54MB to
749.19MB. The peak is still the same: 563.7MB.

llvm-svn: 331075
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h