r283199 - Revert "[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 01:54:51 PDT 2016


Author: dberris
Date: Tue Oct  4 03:54:51 2016
New Revision: 283199

URL: http://llvm.org/viewvc/llvm-project?rev=283199&view=rev
Log:
Revert "[XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed"

This reverts 283193 -- broke the build.

Removed:
    cfe/trunk/test/Driver/xray-instrument.c
Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=283199&r1=283198&r2=283199&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Oct  4 03:54:51 2016
@@ -4777,20 +4777,7 @@ void Clang::ConstructJob(Compilation &C,
 
   if (Args.hasFlag(options::OPT_fxray_instrument,
                    options::OPT_fnoxray_instrument, false)) {
-    const char *const XRayInstrumentOption = "-fxray-instrument";
-    switch (getToolChain().getArch()) {
-    case llvm::Triple::arm:
-    case llvm::Triple::x86_64:
-      break;
-    default: {
-      std::string Feature(XRayInstrumentOption);
-      Feature += " on ";
-      Feature += Triple.getArchName().data();
-      D.Diag(diag::err_drv_clang_unsupported) << Feature;
-      break;
-    }
-    }
-    CmdArgs.push_back(XRayInstrumentOption);
+    CmdArgs.push_back("-fxray-instrument");
     if (const Arg *A =
             Args.getLastArg(options::OPT_fxray_instruction_threshold_,
                             options::OPT_fxray_instruction_threshold_EQ)) {

Removed: cfe/trunk/test/Driver/xray-instrument.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/xray-instrument.c?rev=283198&view=auto
==============================================================================
--- cfe/trunk/test/Driver/xray-instrument.c (original)
+++ cfe/trunk/test/Driver/xray-instrument.c (removed)
@@ -1,3 +0,0 @@
-// RUN: %clang -v -fxray-instrument -c %s
-// XFAIL: armeb, aarch64, aarch64_be, avr, bpfel, bpfeb, hexagon, mips, mipsel, mips64, mips64el, msp430, ppc, ppc64, ppc64le, r600, amdgcn, sparc, sparcv9, sparcel, systemz, tce, thumb, thumbeb, x86-, xcore, nvptx, nvptx64, le32, le64, amdil, amdil64, hsail, hsail64, spir, spir64, kalimba, shave, lanai, wasm32, wasm64, renderscript32, renderscript64
-typedef int a;




More information about the cfe-commits mailing list