HomePhabricator

Avoid conflicts between debug-info and pseudo-probe profiling

Authored by probinson on Feb 9 2021, 2:41 PM.

Description

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

Details