Always cache resolved paths as it even saves on StringMap lookups.
authorPete Cooper <peter_cooper@apple.com>
Fri, 18 Mar 2016 05:04:04 +0000 (05:04 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 18 Mar 2016 05:04:04 +0000 (05:04 +0000)
commit64d075ec07aafab44dd7da884c5434a22dfe728d
treef3d75cf7543c12df5b62c6045ba94994ac00f70d
parent631ed04af04d349eb4886e17ddc688e496eac8cc
Always cache resolved paths as it even saves on StringMap lookups.

Now that the resolved path cache stores the StringRef's, its
best to just always cache the results, even when realpath isn't
used.  This way we'll still avoid the StringMap hashing and lookup.

This also conveniently reorganises this code in a way I need for
a future patch.

llvm-svn: 263777
llvm/tools/dsymutil/DwarfLinker.cpp