[all-commits] [llvm/llvm-project] 6e73cf: Basic: Change Module::Umbrella to a PointerUnion, NFC

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Wed Nov 4 13:20:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e73cfa8363d43689f77b0e4e4c2787ae6ae3fb6
      https://github.com/llvm/llvm-project/commit/6e73cfa8363d43689f77b0e4e4c2787ae6ae3fb6
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-11-04 (Wed, 04 Nov 2020)

  Changed paths:
    M clang/include/clang/Basic/Module.h
    M clang/lib/Basic/Module.cpp
    M clang/lib/Lex/ModuleMap.cpp

  Log Message:
  -----------
  Basic: Change Module::Umbrella to a PointerUnion, NFC

Change `Module::Umbrella` from a `const void *` to a `PointerUnion` of
`FileEntry` and `DirectoryEntry`. We can drop the `HasUmbrellaDir` bit
(since `PointerUnion` includes that).

This change makes it safer to update to `FileEntryRef` and
`DirectoryEntryRef` in a future patch.

Differential Revision: https://reviews.llvm.org/D90481




More information about the All-commits mailing list