[all-commits] [llvm/llvm-project] fa32fd: [clang] Remove duplication in types::getCompilatio...

Nico Weber via All-commits all-commits at lists.llvm.org
Thu Sep 30 11:17:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa32fd3bf7c070e62487e5ccba00557d57b2ee5c
      https://github.com/llvm/llvm-project/commit/fa32fd3bf7c070e62487e5ccba00557d57b2ee5c
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-09-30 (Thu, 30 Sep 2021)

  Changed paths:
    M clang/include/clang/Driver/Driver.h
    M clang/include/clang/Driver/Phases.h
    M clang/include/clang/Driver/Types.h
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/Types.cpp

  Log Message:
  -----------
  [clang] Remove duplication in types::getCompilationPhases()

Call Driver::getFinalPhase() instead of duplicating it.

https://reviews.llvm.org/D65993 added the duplication, then
02e35832c301e maded it more obviously a copy of getFinalPhase().

The only difference is that getCompilationPhases() used to use
LastPhase / IfsMerge where getFinalPhase() used Link. Adapt
getFinalPhase() to return IfsMerge when needed.

No intentional behavior change.

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




More information about the All-commits mailing list