summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfilingPlatformDarwin.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/InstrProfilingPlatformDarwin.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/InstrProfilingPlatformDarwin.c')
-rw-r--r--compiler-rt/lib/profile/InstrProfilingPlatformDarwin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformDarwin.c b/compiler-rt/lib/profile/InstrProfilingPlatformDarwin.c
index 477020a01a5..8931abaddf7 100644
--- a/compiler-rt/lib/profile/InstrProfilingPlatformDarwin.c
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformDarwin.c
@@ -57,4 +57,7 @@ ValueProfNode *__llvm_profile_begin_vnodes(void) {
}
COMPILER_RT_VISIBILITY
ValueProfNode *__llvm_profile_end_vnodes(void) { return &VNodesEnd; }
+
+COMPILER_RT_VISIBILITY ValueProfNode *CurrentVNode = &VNodesStart;
+COMPILER_RT_VISIBILITY ValueProfNode *EndVNode = &VNodesEnd;
#endif
OpenPOWER on IntegriCloud