aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInvocationTest.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-10-30 18:25:44 -0400
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-12-08 18:10:53 -0800
commit2878e965af27ce037378a4f0409e89039108c09f (patch)
tree49713cf5488160de670f595671cd8690de4113b1 /clang/unittests/Frontend/CompilerInvocationTest.cpp
parent66a03d10220a56437352cafa1f6ff803e307eb8c (diff)
downloadllvm-2878e965af27ce037378a4f0409e89039108c09f.zip
llvm-2878e965af27ce037378a4f0409e89039108c09f.tar.gz
llvm-2878e965af27ce037378a4f0409e89039108c09f.tar.bz2
Basic: Add hashing support for FileEntryRef and DirectoryEntryRef
Allow hashing FileEntryRef and DirectoryEntryRef via `hash_value`, and use that to implement `DenseMapInfo`. This hash should be equal whenever the entry is the same (the name used to reference it is not relevant). Also add `DirectoryEntryRef::isSameRef` to simplify the implementation and facilitate testing. Differential Revision: https://reviews.llvm.org/D92627
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions