aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-01-08 19:14:15 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-01-08 19:14:15 +0000
commit1d84d9ac48b803897c9eab34ad8539916df402cc (patch)
treeb3871f386cbc52fa26dbb2c9f78651d9810f167a /llvm/lib/Support/CommandLine.cpp
parentd92e7499fb966f0513ba9c2e6fbd21b638b423d0 (diff)
downloadllvm-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