summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRForTarget.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-11-08 00:28:40 +0000
committerGreg Clayton <gclayton@apple.com>2010-11-08 00:28:40 +0000
commit7481c20f090d669e434a84ada73a6ddf3d9cd417 (patch)
tree3fb3c7eeb5c7163083686cde06dd6e40b1e57f61 /lldb/source/Expression/IRForTarget.cpp
parent96aef794ba819cdeaae2fe09368cfbcba7851156 (diff)
downloadbcm5719-llvm-7481c20f090d669e434a84ada73a6ddf3d9cd417.tar.gz
bcm5719-llvm-7481c20f090d669e434a84ada73a6ddf3d9cd417.zip
Fixed FileSpec's operator == to deal with equivalent paths such as "/tmp/a.c"
and "/private/tmp/a.c". This was done by adding a "mutable bool m_is_resolved;" member to FileSpec and then modifying the equal operator to check if the filenames are equal, and if they are, then check the directories. If they are not equal, then both paths are checked to see if they have been resolved. If they have been resolved, we resolve the paths in temporary FileSpec objects and set each of the m_is_resolved bools to try (for lhs and rhs) if the paths match what is contained in the path. This allows us to do more intelligent compares without having to resolve all paths found in the debug info (which can quickly get costly if the files are on remote NFS mounts). llvm-svn: 118387
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud