[PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed
Dean Michael Berris via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 4 20:59:51 PDT 2016
dberris added a comment.
In https://reviews.llvm.org/D24799#561106, @rSerge wrote:
> My mistake was that initially I only enumerated the unsupported targets from llvm\include\llvm\ADT\Triple.h . Now I've added also the cases from llvm\lib\Support\Triple.cpp .
> `XFAIL` requires a list of all unsupported cases, which is currently much larger than the list of supported cases. However, AFAIK there is nothing like `XPASS` in LIT.
I just thought about reversing this. How about if you do something like:
// RUN: not %clang -v -fxray-instrument -c %s
// XFAIL: x86_64-, arm7-
I suspect that would be sufficient to work as an `XPASS` of sorts?
https://reviews.llvm.org/D24799
More information about the cfe-commits
mailing list