]> granicus.if.org Git - clang/commit
[XRay] Check in Clang whether XRay supports the target when -fxray-instrument is...
authorDean Michael Berris <dberris@google.com>
Thu, 27 Oct 2016 04:56:14 +0000 (04:56 +0000)
committerDean Michael Berris <dberris@google.com>
Thu, 27 Oct 2016 04:56:14 +0000 (04:56 +0000)
commit424463b984d5023c55377af7d5a350e66f7a88cf
treec065ec6a7b29aa65e9498e807117e55bdaa59f93
parent56e1208572e5aefce27339b7dc43b7827bcc5e46
[XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

Summary:
Added the code which explicitly emits an error in Clang in case
`-fxray-instrument` is passed, but XRay is not supported for the
selected target.

Reviewers: rsmith, aaron.ballman, rnk, dberris

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285266 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/XRay/lit.local.cfg [new file with mode: 0644]
test/Driver/XRay/xray-instrument-cpu.c [new file with mode: 0644]
test/Driver/XRay/xray-instrument-os.c [new file with mode: 0644]