[all-commits] [llvm/llvm-project] 0a9d74: [clang][Driver] Update/cleanup LTO logic to ensure...

Usman Nadeem via All-commits all-commits at lists.llvm.org
Wed Sep 8 15:54:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a9d740c232e1e4b71fcbbaf844211d70b06d873
      https://github.com/llvm/llvm-project/commit/0a9d740c232e1e4b71fcbbaf844211d70b06d873
  Author: Usman Nadeem <mnadeem at quicinc.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Driver/amdgpu-toolchain.c
    M clang/test/Driver/lto.c

  Log Message:
  -----------
  [clang][Driver] Update/cleanup LTO logic to ensure that the last lto argument is honored

- Make flto an alias of flto=full.
- Make foffload-lto an alias of foffload-lto=full.
- Make flto_EQ_jobserver, flto_EQ_auto aliases of flto=full,
  since they are being treated as full lto right now.
- Clean up the code for parseLTOMode and setLTOMode.
- Replace uses of OPT_flto with OPT_flto_EQ since they alias now.

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

Change-Id: I5d867db83a680434fba5c8d85c9a83135d3b81ee




More information about the All-commits mailing list