summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/Fuchsia.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-07-25 03:01:35 +0000
committerPetr Hosek <phosek@chromium.org>2018-07-25 03:01:35 +0000
commit47e5fcba57135025124192626dcb11d9578e4860 (patch)
tree75242ba6006b84bbc363fda09b67b658d4699b13 /clang/lib/Driver/ToolChains/Fuchsia.cpp
parentd981977d5adc10a4613b6eb91bbbfef817dce4ee (diff)
downloadbcm5719-llvm-47e5fcba57135025124192626dcb11d9578e4860.tar.gz
bcm5719-llvm-47e5fcba57135025124192626dcb11d9578e4860.zip
[profile] Support profiling runtime on Fuchsia
This ports the profiling runtime on Fuchsia and enables the instrumentation. Unlike on other platforms, Fuchsia doesn't use files to dump the instrumentation data since on Fuchsia, filesystem may not be accessible to the instrumented process. We instead use the data sink to pass the profiling data to the system the same sanitizer runtimes do. Differential Revision: https://reviews.llvm.org/D47208 llvm-svn: 337881
Diffstat (limited to 'clang/lib/Driver/ToolChains/Fuchsia.cpp')
-rw-r--r--clang/lib/Driver/ToolChains/Fuchsia.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Fuchsia.cpp b/clang/lib/Driver/ToolChains/Fuchsia.cpp
index 459b68b55a3..54c34ff159b 100644
--- a/clang/lib/Driver/ToolChains/Fuchsia.cpp
+++ b/clang/lib/Driver/ToolChains/Fuchsia.cpp
@@ -109,6 +109,7 @@ void fuchsia::Linker::ConstructJob(Compilation &C, const JobAction &JA,
addSanitizerRuntimes(ToolChain, Args, CmdArgs);
AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
+ ToolChain.addProfileRTLibs(Args, CmdArgs);
if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
if (Args.hasArg(options::OPT_static))
OpenPOWER on IntegriCloud