From 4541bb7fd0699afc5a3d9c417927ab125020eeee Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Tue, 4 Oct 2016 08:54:51 +0000 Subject: [PATCH] Revert "[XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed" This reverts 283193 -- broke the build. llvm-svn: 283199 --- clang/lib/Driver/Tools.cpp | 15 +-------------- clang/test/Driver/xray-instrument.c | 3 --- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 clang/test/Driver/xray-instrument.c diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 80feca4..5138d75 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -4777,20 +4777,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, 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)) { diff --git a/clang/test/Driver/xray-instrument.c b/clang/test/Driver/xray-instrument.c deleted file mode 100644 index 25d063a..0000000 --- a/clang/test/Driver/xray-instrument.c +++ /dev/null @@ -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; -- 2.7.4