From 6d2e3c60e65e302d47594038d19135211ce182e1 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Fri, 10 Nov 2017 05:50:13 +0000 Subject: [XRay][darwin] Initial XRay in Darwin Support Summary: This change implements the changes required in both clang and compiler-rt to allow building XRay-instrumented binaries in Darwin. For now we limit this to x86_64. We also start building the XRay runtime library in compiler-rt for osx. A caveat to this is that we don't have the tests set up and running yet, which we'll do in a set of follow-on changes. This patch uses the monorepo layout for the coordinated change across multiple projects. Reviewers: kubamracek Subscribers: mgorny, cfe-commits, llvm-commits Differential Revision: https://reviews.llvm.org/D39114 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317875 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/XRayArgs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/clang/Driver/XRayArgs.h b/include/clang/Driver/XRayArgs.h index 83210d100a..01ad6b047f 100644 --- a/include/clang/Driver/XRayArgs.h +++ b/include/clang/Driver/XRayArgs.h @@ -30,6 +30,7 @@ public: XRayArgs(const ToolChain &TC, const llvm::opt::ArgList &Args); void addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, types::ID InputType) const; + bool needsXRayRt() const { return XRayInstrument; } }; } // namespace driver -- cgit v1.2.1