summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-22 16:36:03 +0000
committerXinliang David Li <davidxl@google.com>2016-05-22 16:36:03 +0000
commit7b41393497019bbfae2010ea2d41d28e0ce8766c (patch)
tree7f9db12deb8f8e313afcd9d92ec7c867577923ad /compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
parent8ec7e7c21606dc4935dd74119ac517ad52819c87 (diff)
downloadbcm5719-llvm-7b41393497019bbfae2010ea2d41d28e0ce8766c.tar.gz
bcm5719-llvm-7b41393497019bbfae2010ea2d41d28e0ce8766c.zip
[profile] initialize static pool properly
Remove dependency on runtime initializer to avoid issues related to initialization order. llvm-svn: 270371
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingPlatformLinux.c')
-rw-r--r--compiler-rt/lib/profile/InstrProfilingPlatformLinux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c b/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
index 679f183859e..b6c780ff514 100644
--- a/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
@@ -66,8 +66,10 @@ COMPILER_RT_VISIBILITY ValueProfNode *
__llvm_profile_begin_vnodes(void) {
return &PROF_VNODES_START;
}
-COMPILER_RT_VISIBILITY ValueProfNode *
-__llvm_profile_end_vnodes(void) {
+COMPILER_RT_VISIBILITY ValueProfNode *__llvm_profile_end_vnodes(void) {
return &PROF_VNODES_STOP;
}
+COMPILER_RT_VISIBILITY ValueProfNode *CurrentVNode = &PROF_VNODES_START;
+COMPILER_RT_VISIBILITY ValueProfNode *EndVNode = &PROF_VNODES_STOP;
+
#endif
OpenPOWER on IntegriCloud