[all-commits] [llvm/llvm-project] cef56d: [clang] Change set type used for SourceLocation.

Simon Tatham via All-commits all-commits at lists.llvm.org
Mon Jul 19 05:36:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cef56d58dbbb3bc993531c14af5e3edd2841029d
      https://github.com/llvm/llvm-project/commit/cef56d58dbbb3bc993531c14af5e3edd2841029d
  Author: Simon Tatham <simon.tatham at arm.com>
  Date:   2021-07-19 (Mon, 19 Jul 2021)

  Changed paths:
    M clang/include/clang/Basic/SourceLocation.h
    M clang/include/clang/Lex/Preprocessor.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list