[FileSystem] Fix regression in FileSystem::Resolve
[FileSystem] Fix regression in FileSystem::Resolve

When I moved the resolve code from FileSpec to the FileSystem class, I
introduced a regression. If you compare the two implementations, you'll
notice that if the path doesn't exist, we should only reverse the
effects of makeAbsolute, not the effects of tilde expansion.

As a result, the logic to create the ~/.lldb directory broke, because we
would resolve the path before creating it. Because the directory didn't
exist yet, we'd call create_directories on the unresolved path, which
failed.

Differential revision: https://reviews.llvm.org/D62219

git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@361321 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 7d9cd080ff1e443ead918444c13eae3f12fe64e4)

apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb