diff options
author | Petr Hosek <phosek@chromium.org> | 2018-07-25 03:01:35 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-07-25 03:01:35 +0000 |
commit | 47e5fcba57135025124192626dcb11d9578e4860 (patch) | |
tree | 75242ba6006b84bbc363fda09b67b658d4699b13 /llvm/lib/Transforms | |
parent | d981977d5adc10a4613b6eb91bbbfef817dce4ee (diff) | |
download | bcm5719-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/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 1 |
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; |