r332070 - Permit -fxray-instrument for NetBSD/amd64

Kamil Rytarowski via cfe-commits cfe-commits at lists.llvm.org
Thu May 10 17:58:55 PDT 2018


Author: kamil
Date: Thu May 10 17:58:55 2018
New Revision: 332070

URL: http://llvm.org/viewvc/llvm-project?rev=332070&view=rev
Log:
Permit -fxray-instrument for NetBSD/amd64

Summary:
Use the same branch as FreeBSD and OpenBSD.

Sponsored by <The NetBSD Foundation>

Reviewers: joerg, dberris, vitalybuka

Reviewed By: vitalybuka

Subscribers: emaste, llvm-commits

Differential Revision: https://reviews.llvm.org/D46737

Modified:
    cfe/trunk/lib/Driver/XRayArgs.cpp

Modified: cfe/trunk/lib/Driver/XRayArgs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/XRayArgs.cpp?rev=332070&r1=332069&r2=332070&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/XRayArgs.cpp (original)
+++ cfe/trunk/lib/Driver/XRayArgs.cpp Thu May 10 17:58:55 2018
@@ -51,7 +51,8 @@ XRayArgs::XRayArgs(const ToolChain &TC,
             << (std::string(XRayInstrumentOption) + " on " + Triple.str());
       }
     } else if (Triple.getOS() == llvm::Triple::FreeBSD ||
-               Triple.getOS() == llvm::Triple::OpenBSD) {
+               Triple.getOS() == llvm::Triple::OpenBSD ||
+               Triple.getOS() == llvm::Triple::NetBSD) {
       if (Triple.getArch() != llvm::Triple::x86_64) {
         D.Diag(diag::err_drv_clang_unsupported)
             << (std::string(XRayInstrumentOption) + " on " + Triple.str());




More information about the cfe-commits mailing list