diff options
author | Simon Tatham <simon.tatham@arm.com> | 2021-07-21 09:17:33 +0100 |
---|---|---|
committer | Simon Tatham <simon.tatham@arm.com> | 2021-07-21 10:45:46 +0100 |
commit | 21401a72629cc591bab7ec6816f03e6c550f3fb3 (patch) | |
tree | 31d5d18474c95e0858759982b697f86d84a36144 /clang/lib/Basic/SourceLocation.cpp | |
parent | 91670f5f20daa00b83520b76bcb54a5d373242f3 (diff) | |
download | llvm-21401a72629cc591bab7ec6816f03e6c550f3fb3.zip llvm-21401a72629cc591bab7ec6816f03e6c550f3fb3.tar.gz llvm-21401a72629cc591bab7ec6816f03e6c550f3fb3.tar.bz2 |
[clang] Introduce SourceLocation::[U]IntTy typedefs.
This is part of a patch series working towards the ability to make
SourceLocation into a 64-bit type to handle larger translation units.
NFC: this patch introduces typedefs for the integer type used by
SourceLocation and makes all the boring changes to use the typedefs
everywhere, but for the moment, they are unconditionally defined to
uint32_t.
Patch originally by Mikhail Maltsev.
Reviewed By: tmatheson
Differential Revision: https://reviews.llvm.org/D105492
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index 6f64120..6986fcd 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/lib/Basic/SourceLocation.cpp @@ -51,7 +51,7 @@ static_assert(std::is_trivially_destructible<SourceRange>::value, "used in unions"); unsigned SourceLocation::getHashValue() const { - return llvm::DenseMapInfo<unsigned>::getHashValue(ID); + return llvm::DenseMapInfo<UIntTy>::getHashValue(ID); } void llvm::FoldingSetTrait<SourceLocation>::Profile( |