aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-07-22 01:41:32 +0000
committerPete Cooper <peter_cooper@apple.com>2016-07-22 01:41:32 +0000
commitb2ba776aedf88c8a1f7c66d444fac38a33900897 (patch)
treecc6e86eeaf0b813b46482a4e0421ae989cb7176b /llvm/lib/Object/IRObjectFile.cpp
parent8258686922244ffcddf4a9d6f8b5dfc7b84c3089 (diff)
downloadllvm-b2ba776aedf88c8a1f7c66d444fac38a33900897.zip
llvm-b2ba776aedf88c8a1f7c66d444fac38a33900897.tar.gz
llvm-b2ba776aedf88c8a1f7c66d444fac38a33900897.tar.bz2
Avoid dsymutil calls to getFileNameByIndex.
This change adds a hasFileAtIndex method. getChildDeclContext can first call this method, and if it returns true it knows it can then lookup the resolved path cache for the given file index. If we hit that cache then we don't even have to call getFileNameByIndex. Running dsymutil against the swift executable built from github gives a 20% performance improvement without any change in the binary. Differential Revision: https://reviews.llvm.org/D22655 Reviewed by friss. llvm-svn: 276380
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions