[all-commits] [llvm/llvm-project] 068b8a: [ARM][AArch64] Change -mharden-sls= to use err_drv...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri May 27 22:04:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 068b8af7961caafadeffd1a99a103ef1d7a36e21
      https://github.com/llvm/llvm-project/commit/068b8af7961caafadeffd1a99a103ef1d7a36e21
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-05-27 (Fri, 27 May 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Driver/ToolChains/Arch/AArch64.cpp
    M clang/lib/Driver/ToolChains/Arch/ARM.cpp
    M clang/test/Driver/sls-hardening-options.c

  Log Message:
  -----------
  [ARM][AArch64] Change -mharden-sls= to use err_drv_unsupported_option_argument

Update the diagnostic in D81404: the convention is to use
err_drv_unsupported_option_argument instead of adding a new diagnostic for every
option.

Reviewed By: nickdesaulniers

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




More information about the All-commits mailing list