llvm-project/lldb/unittests/Target
Greg Clayton 86188d8a40 Fix PathMappingList for relative and empty paths after recent FileSpec normalization changes
PathMappingList was broken for relative and empty paths after normalization changes in FileSpec. There were also no tests for PathMappingList so I added those.

Changes include:

Change PathMappingList::ReverseRemapPath() to take FileSpec objects instead of ConstString. The only client of this was doing work to convert to and from ConstString objects for no reason.
Normalize all paths prefix and replacements that are added to the PathMappingList vector so they match the paths that have been already normalized in the debug info
Unify code in the two forms of PathMappingList::RemapPath() so only one contains the actual functionality. Prior to this, there were two versions of this code.
Use FileSpec::AppendPathComponent() and remove a long standing TODO so paths are correctly appended to each other.
Added tests for absolute, relative and empty paths.

Differential Revision: https://reviews.llvm.org/D47021

llvm-svn: 332842
2018-05-21 14:14:36 +00:00
..
Inputs
CMakeLists.txt Fix PathMappingList for relative and empty paths after recent FileSpec normalization changes 2018-05-21 14:14:36 +00:00
MemoryRegionInfoTest.cpp Add format_provider for the MemoryRegionInfo::OptionalBool enum 2017-02-22 10:37:57 +00:00
ModuleCacheTest.cpp FileSpec: Remove PathSyntax enum and use llvm version instead 2018-05-14 14:52:47 +00:00
PathMappingListTest.cpp Fix PathMappingList for relative and empty paths after recent FileSpec normalization changes 2018-05-21 14:14:36 +00:00