]> granicus.if.org Git - clang/commit
[Driver][Darwin] Emit an error when using -pg on OS without support for it.
authorVolodymyr Sapsai <vsapsai@apple.com>
Thu, 14 Feb 2019 23:50:44 +0000 (23:50 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Thu, 14 Feb 2019 23:50:44 +0000 (23:50 +0000)
commit7ec1b61e70ad4c91669694b4bf5ab297dfc063ce
tree4e031cff963c50c5e9800ce3d8d002c1a846165c
parent5cb19f0ba23af57719f876ab5d34c5122b366ee8
[Driver][Darwin] Emit an error when using -pg on OS without support for it.

Instead of letting a program fail at runtime, emit an error during
compilation.

rdar://problem/12206955

Reviewers: dexonsmith, bob.wilson, steven_wu

Reviewed By: steven_wu

Subscribers: jkorous, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354084 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/ToolChains/Darwin.cpp
test/Driver/darwin-ld.c