Re: [PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-09-26 Thread Serge Rogatch via cfe-commits
rSerge updated this revision to Diff 72554. rSerge added a comment. Implemented a workaround for XFAIL not differentiating between `x86` and `x86_64` because it searches for a substring in the triple string, thus `x86` matches both `x86-X-Y-Z` and `x86_64-X-Y-Z`. https://reviews.llvm.org/D2479

Re: [PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-09-26 Thread Serge Rogatch via cfe-commits
rSerge added inline comments. Comment at: lib/Driver/Tools.cpp:4777-4780 @@ +4776,6 @@ +{ + std::string Feature(XRayInstrumentOption); + Feature += " on "; + Feature += Triple.getArchName().data(); + D.Diag(diag::err_drv_clang_unsupported) << Feature; +

Re: [PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-09-26 Thread Dean Michael Berris via cfe-commits
dberris added inline comments. Comment at: lib/Driver/Tools.cpp:4777-4780 @@ +4776,6 @@ +{ + std::string Feature(XRayInstrumentOption); + Feature += " on "; + Feature += Triple.getArchName().data(); + D.Diag(diag::err_drv_clang_unsupported) << Feature; +

Re: [PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-09-23 Thread Serge Rogatch via cfe-commits
rSerge updated this revision to Diff 72312. rSerge added a comment. Herald added a subscriber: rampitec. Added a test. Changed the error message to: > clang++.exe: error: the clang compiler does not support '-fxray-instrument on > armv6kz--linux-gnueabihf' https://reviews.llvm.org/D24799 Fil

Re: [PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-09-22 Thread Dean Michael Berris via cfe-commits
dberris added a comment. In https://reviews.llvm.org/D24799#549634, @rSerge wrote: > In https://reviews.llvm.org/D24799#549442, @dberris wrote: > > > What does the error actually look like? Can you add a test for it? It's > > unclear to me how this would read... for example does it say "XRay for

Re: [PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-09-22 Thread Serge Rogatch via cfe-commits
rSerge added a comment. In https://reviews.llvm.org/D24799#549442, @dberris wrote: > What does the error actually look like? Can you add a test for it? It's > unclear to me how this would read... for example does it say "XRay for arm is > unsupported"? In the attached picture you can see how

Re: [PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-09-21 Thread Dean Michael Berris via cfe-commits
dberris added a comment. What does the error actually look like? Can you add a test for it? It's unclear to me how this would read... for example does it say "XRay for arm is unsupported"? https://reviews.llvm.org/D24799 ___ cfe-commits mailing li