[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)
commitf469cb9045d1cd2b66e080462f472ba47d913d3f
tree3e81defb0bb386ab799b3528be6e72275d0ad05e
parentf8520559ce1be64c9f4f0abae7e5e1494341892d
[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

llvm-svn: 285266
clang/lib/Driver/Tools.cpp
clang/test/Driver/XRay/lit.local.cfg [new file with mode: 0644]
clang/test/Driver/XRay/xray-instrument-cpu.c [new file with mode: 0644]
clang/test/Driver/XRay/xray-instrument-os.c [new file with mode: 0644]