Skip to content

Commit 448631f

Browse files
committedMay 11, 2018
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 llvm-svn: 332070
1 parent 02c432a commit 448631f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎clang/lib/Driver/XRayArgs.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ XRayArgs::XRayArgs(const ToolChain &TC, const ArgList &Args) {
5151
<< (std::string(XRayInstrumentOption) + " on " + Triple.str());
5252
}
5353
} else if (Triple.getOS() == llvm::Triple::FreeBSD ||
54-
Triple.getOS() == llvm::Triple::OpenBSD) {
54+
Triple.getOS() == llvm::Triple::OpenBSD ||
55+
Triple.getOS() == llvm::Triple::NetBSD) {
5556
if (Triple.getArch() != llvm::Triple::x86_64) {
5657
D.Diag(diag::err_drv_clang_unsupported)
5758
<< (std::string(XRayInstrumentOption) + " on " + Triple.str());

0 commit comments

Comments
 (0)
Please sign in to comment.