summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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 /llvm/lib
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 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index 8be1638ce40..22076f04d6a 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -691,6 +691,7 @@ static bool needsRuntimeRegistrationOfSectionRange(const Module &M) {
// Use linker script magic to get data/cnts/name start/end.
if (Triple(M.getTargetTriple()).isOSLinux() ||
Triple(M.getTargetTriple()).isOSFreeBSD() ||
+ Triple(M.getTargetTriple()).isOSFuchsia() ||
Triple(M.getTargetTriple()).isPS4CPU())
return false;
OpenPOWER on IntegriCloud