diff options
author | Dean Michael Berris <dberris@google.com> | 2017-11-10 05:50:13 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-11-10 05:50:13 +0000 |
commit | 6d2e3c60e65e302d47594038d19135211ce182e1 (patch) | |
tree | 4b75a94d567048be681bf70b75b6d192fe0e1c66 /include | |
parent | 41ea3d5b6cc3bdb5a44b1e9bc292f635471d44c3 (diff) | |
download | clang-6d2e3c60e65e302d47594038d19135211ce182e1.tar.gz |
[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
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Driver/XRayArgs.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |