Avoid conflicts between debug-info and pseudo-probe profiling
authorPaul Robinson <paul.robinson@sony.com>
Tue, 9 Feb 2021 22:41:52 +0000 (14:41 -0800)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 10 Feb 2021 15:09:18 +0000 (07:09 -0800)
commit5ea2d4fa481160c9843b8651df265ce1fbfd9316
tree54520619c2033387078fede1043943eb9ccaeb38
parentb5f3383152058e230c1563a60c36e8384ab448c8
Avoid conflicts between debug-info and pseudo-probe profiling

After D93264, using both -fdebug-info-for-profiling and
-fpseudo-probe-for-profiling will cause the compiler to crash.
Diagnose these conflicting options in the driver.

Also, the existing CodeGen test was using the driver when it should be
running cc1.

Differential Revision: https://reviews.llvm.org/D96354
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/CodeGen/pseudo-probe-emit.c
clang/test/Driver/pseudo-probe.c [new file with mode: 0644]