[clang] 62abd9a - [Lex] HeaderSearchOptions: Remove unused hash_value overloads
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 20 22:46:52 PDT 2024
Author: Fangrui Song
Date: 2024-06-20T22:46:47-07:00
New Revision: 62abd9a6f6fecaebb5aaac7720622f4ca13b3e45
URL: https://github.com/llvm/llvm-project/commit/62abd9a6f6fecaebb5aaac7720622f4ca13b3e45
DIFF: https://github.com/llvm/llvm-project/commit/62abd9a6f6fecaebb5aaac7720622f4ca13b3e45.diff
LOG: [Lex] HeaderSearchOptions: Remove unused hash_value overloads
Added:
Modified:
clang/include/clang/Lex/HeaderSearchOptions.h
Removed:
################################################################################
diff --git a/clang/include/clang/Lex/HeaderSearchOptions.h b/clang/include/clang/Lex/HeaderSearchOptions.h
index e4437ac0e3526..17635146a1614 100644
--- a/clang/include/clang/Lex/HeaderSearchOptions.h
+++ b/clang/include/clang/Lex/HeaderSearchOptions.h
@@ -11,7 +11,6 @@
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/CachedHashString.h"
-#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/HashBuilder.h"
@@ -310,21 +309,12 @@ class HeaderSearchOptions {
}
};
-inline llvm::hash_code hash_value(const HeaderSearchOptions::Entry &E) {
- return llvm::hash_combine(E.Path, E.Group, E.IsFramework, E.IgnoreSysRoot);
-}
-
template <typename HasherT, llvm::endianness Endianness>
inline void addHash(llvm::HashBuilder<HasherT, Endianness> &HBuilder,
const HeaderSearchOptions::Entry &E) {
HBuilder.add(E.Path, E.Group, E.IsFramework, E.IgnoreSysRoot);
}
-inline llvm::hash_code
-hash_value(const HeaderSearchOptions::SystemHeaderPrefix &SHP) {
- return llvm::hash_combine(SHP.Prefix, SHP.IsSystemHeader);
-}
-
template <typename HasherT, llvm::endianness Endianness>
inline void addHash(llvm::HashBuilder<HasherT, Endianness> &HBuilder,
const HeaderSearchOptions::SystemHeaderPrefix &SHP) {
More information about the cfe-commits
mailing list