[clang] Change set type used for SourceLocation.
authorSimon Tatham <simon.tatham@arm.com>
Mon, 19 Jul 2021 10:45:46 +0000 (11:45 +0100)
committerSimon Tatham <simon.tatham@arm.com>
Mon, 19 Jul 2021 12:36:36 +0000 (13:36 +0100)
commitcef56d58dbbb3bc993531c14af5e3edd2841029d
tree846d4d6b61d05e600588d06a00e1875110c1ae25
parent58ddeba3e0de504039add9b5a10a4546de25c7a9
[clang] Change set type used for SourceLocation.

This is part of a patch series working towards the ability to make
SourceLocation into a 64-bit type to handle larger translation units.

If clang is built for a 32-bit platform and SourceLocation is 64 bits
wide, then a SourceLocation will be larger than a pointer, so it won't
be possible to keep them in a SmallPtrSet any more. Switch to
SmallDenseSet instead.

Patch originally by Mikhail Maltsev.

Differential Revision: https://reviews.llvm.org/D105493
clang/include/clang/Basic/SourceLocation.h
clang/include/clang/Lex/Preprocessor.h