]> granicus.if.org Git - clang/commit
[NFC][clang] Refactor getCompilationPhases()+Types.def step 2.
authorPuyan Lotfi <puyan@puyan.org>
Thu, 25 Jul 2019 22:05:55 +0000 (22:05 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Thu, 25 Jul 2019 22:05:55 +0000 (22:05 +0000)
commit65f56b7e646a1ebc515f225ba4ffefe989e7eaca
tree75af910e7fc8755fa6a6e90f34650d55b3abbe83
parentbcb1c9a78380b4facc05d15ce0db0aaf6cfa4ba4
[NFC][clang] Refactor getCompilationPhases()+Types.def step 2.

- Removing a few of the entries in the Flags for the Types.def table.
- Removing redundant parts of getCompilationPhases().

Flags have been removed from Types.def:

 a - The type should only be assembled: Now, check that Phases contains
     phases::Assemble but not phases::Compile or phases::Backend.
 p - The type should only be precompiled: Now, check that Phases contains
     phases::Precompile but that Flags does not contain 'm'.
 m - Precompiling this type produces a module file: Now, check that
     isPrepeocessedModuleType.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367063 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Types.def
lib/Driver/Types.cpp