diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-08 19:14:15 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-08 19:14:15 +0000 |
commit | 1d84d9ac48b803897c9eab34ad8539916df402cc (patch) | |
tree | b3871f386cbc52fa26dbb2c9f78651d9810f167a /llvm/lib/Support/CommandLine.cpp | |
parent | d92e7499fb966f0513ba9c2e6fbd21b638b423d0 (diff) | |
download | llvm-1d84d9ac48b803897c9eab34ad8539916df402cc.zip llvm-1d84d9ac48b803897c9eab34ad8539916df402cc.tar.gz llvm-1d84d9ac48b803897c9eab34ad8539916df402cc.tar.bz2 |
llvm-objdump: speed up -objc-meta-data
Running a Debug build of objdump -objc-meta-data with a large Mach-O file is
currently unnecessarily slow.
With some local test input, this change reduces the run time from 75-85s down
to 15-20s.
The two changes are:
Assert on pointer equality not array equality
Replace vector<pair<address, symbol>> with DenseMap<address, symbol>
Additionally, use a std::unique_ptr rather than handling the memory manually.
Patch by Dave Lee!
llvm-svn: 291398
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions