Basic: Change Module::Umbrella to a PointerUnion, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 29 Oct 2020 19:14:30 +0000 (15:14 -0400)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 4 Nov 2020 21:19:39 +0000 (16:19 -0500)
commit6e73cfa8363d43689f77b0e4e4c2787ae6ae3fb6
tree74c6deb6dea1457a335c5a45169ab691cd69e7e8
parentab0ddbc38af9508ee0f753fb897d9050025a0763
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
clang/include/clang/Basic/Module.h
clang/lib/Basic/Module.cpp
clang/lib/Lex/ModuleMap.cpp