[all-commits] [llvm/llvm-project] cab5f8: [Clang] allow overriding -fbasic-block-sections

Artem Belevich via All-commits all-commits at lists.llvm.org
Wed Jun 30 14:33:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cab5f89cfd9efa9166e1362972e460323b8254ef
      https://github.com/llvm/llvm-project/commit/cab5f89cfd9efa9166e1362972e460323b8254ef
  Author: Artem Belevich <tra at google.com>
  Date:   2021-06-30 (Wed, 30 Jun 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/fbasic-block-sections.c

  Log Message:
  -----------
  [Clang] allow overriding -fbasic-block-sections

We should not error out on non-x86 targets if `-fbasic-block-sections=none` is in effect.

Also, filter it out for GPU-side compilations, as we do with other options not
supported on the GPU.

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




More information about the All-commits mailing list