[all-commits] [llvm/llvm-project] 4468e5: [clang] Don't pass multiple backend options if mix...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri May 21 14:06:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4468e5b8999291cc84b78f33f207dcd0e58146bc
      https://github.com/llvm/llvm-project/commit/4468e5b8999291cc84b78f33f207dcd0e58146bc
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-05-22 (Sat, 22 May 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/arm-target-as-mimplicit-it.s

  Log Message:
  -----------
  [clang] Don't pass multiple backend options if mixing -mimplicit-it and -Wa,-mimplicit-it

If multiple instances of the -arm-implicit-it option is passed to
the backend, it errors out.

Also fix cases where there are multiple -Wa,-mimplicit-it; the existing
tests indicate that the last one specified takes effect, while in
practice it passed double options, which didn't work as intended.

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




More information about the All-commits mailing list