[all-commits] [llvm/llvm-project] 157cd9: [clang] Disallow fbasic-block-sections on non-ELF, ...
Snehasish Kumar via All-commits
all-commits at lists.llvm.org
Thu Sep 10 00:20:12 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 157cd93b48a90f484e9eb2ed9997e0372b9c7ebb
https://github.com/llvm/llvm-project/commit/157cd93b48a90f484e9eb2ed9997e0372b9c7ebb
Author: Snehasish Kumar <snehasishk at google.com>
Date: 2020-09-10 (Thu, 10 Sep 2020)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/fbasic-block-sections.c
Log Message:
-----------
[clang] Disallow fbasic-block-sections on non-ELF, non-x86 targets.
Basic block sections is untested on other platforms and binary formats apart
from x86,elf. This patch emits a warning and drops the flag if the platform
and binary format are not compatible. Add a test to ensure that
specifying an incompatible target in the driver does not enable the
feature.
Differential Revision: https://reviews.llvm.org/D87426
More information about the All-commits
mailing list