This is an archive of the discontinued LLVM Phabricator instance.

[clang] Serialize source locations as 64-bit in PCH.
Needs ReviewPublic

Authored by simon_tatham on Jul 6 2021, 9:27 AM.



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

Unconditionally expanding the serialized encoding to 64 bits is the
simplest way to ensure that it will be big enough to handle an
expanded SourceLocation.

As I understand it, PCH files are already automatically versioned with
the exact revision of the compiler that built them, so this shouldn't
introduce any compatibility problem, because clang will already refuse
to load any PCH from a different version of itself.

Patch based on previous work by Mikhail Maltsev.

Diff Detail