summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingPlatformLinux.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-10-19 04:17:19 +0000
committerXinliang David Li <davidxl@google.com>2015-10-19 04:17:19 +0000
commit73404b7fcd4320c94f60be4a188e988ea12774f1 (patch)
treeaefaf938f3119f482a58b811fcde2e8cbfb3442e /lib/profile/InstrProfilingPlatformLinux.c
parent7b13ae6fb15a560a9f1eed814e720b7187ad5787 (diff)
[PGO] Eliminate prof data register calls on FreeBSD platform
This is a follow up patch of r250199 after verifying the start/stop section symbols work as spected on FreeBSD. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@250680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingPlatformLinux.c')
-rw-r--r--lib/profile/InstrProfilingPlatformLinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/profile/InstrProfilingPlatformLinux.c b/lib/profile/InstrProfilingPlatformLinux.c
index 6c3c26c5a..7a74e0e45 100644
--- a/lib/profile/InstrProfilingPlatformLinux.c
+++ b/lib/profile/InstrProfilingPlatformLinux.c
@@ -9,7 +9,7 @@
#include "InstrProfiling.h"
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
#include <stdlib.h>
extern __llvm_profile_data __start___llvm_prf_data