This revision was automatically updated to reflect the committed changes. Closed by commit rL370093: [driver][xray] fix the macOS support checker by supporting -macos (authored by arphaman, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D61758?vs=198897&id=217452#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61758/new/ https://reviews.llvm.org/D61758 Files: cfe/trunk/lib/Driver/XRayArgs.cpp cfe/trunk/test/Driver/XRay/xray-instrument-macos.c Index: cfe/trunk/lib/Driver/XRayArgs.cpp =================================================================== --- cfe/trunk/lib/Driver/XRayArgs.cpp +++ cfe/trunk/lib/Driver/XRayArgs.cpp @@ -52,7 +52,7 @@ } else if (Triple.isOSFreeBSD() || Triple.isOSOpenBSD() || Triple.isOSNetBSD() || - Triple.getOS() == llvm::Triple::Darwin) { + Triple.isMacOSX()) { if (Triple.getArch() != llvm::Triple::x86_64) { D.Diag(diag::err_drv_clang_unsupported) << (std::string(XRayInstrumentOption) + " on " + Triple.str()); Index: cfe/trunk/test/Driver/XRay/xray-instrument-macos.c =================================================================== --- cfe/trunk/test/Driver/XRay/xray-instrument-macos.c +++ cfe/trunk/test/Driver/XRay/xray-instrument-macos.c @@ -0,0 +1,4 @@ +// RUN: %clang -o /dev/null -v -fxray-instrument -target x86_64-apple-macos10.11 -c %s +// RUN: %clang -o /dev/null -v -fxray-instrument -target x86_64-apple-darwin15 -c %s +// REQUIRES-ANY: x86_64, x86_64h +typedef int a;
Index: cfe/trunk/lib/Driver/XRayArgs.cpp =================================================================== --- cfe/trunk/lib/Driver/XRayArgs.cpp +++ cfe/trunk/lib/Driver/XRayArgs.cpp @@ -52,7 +52,7 @@ } else if (Triple.isOSFreeBSD() || Triple.isOSOpenBSD() || Triple.isOSNetBSD() || - Triple.getOS() == llvm::Triple::Darwin) { + Triple.isMacOSX()) { if (Triple.getArch() != llvm::Triple::x86_64) { D.Diag(diag::err_drv_clang_unsupported) << (std::string(XRayInstrumentOption) + " on " + Triple.str()); Index: cfe/trunk/test/Driver/XRay/xray-instrument-macos.c =================================================================== --- cfe/trunk/test/Driver/XRay/xray-instrument-macos.c +++ cfe/trunk/test/Driver/XRay/xray-instrument-macos.c @@ -0,0 +1,4 @@ +// RUN: %clang -o /dev/null -v -fxray-instrument -target x86_64-apple-macos10.11 -c %s +// RUN: %clang -o /dev/null -v -fxray-instrument -target x86_64-apple-darwin15 -c %s +// REQUIRES-ANY: x86_64, x86_64h +typedef int a;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits