summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfilingUtil.h
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2019-06-06 06:35:18 +0000
committerXinliang David Li <davidxl@google.com>2019-06-06 06:35:18 +0000
commitc1867557d93d622f761b57af6e66e3e518bc0b9f (patch)
tree72685a8c1a95676d892d7093ff13c08cd085c751 /compiler-rt/lib/profile/InstrProfilingUtil.h
parent9226ba6b376ea2a221e97c2f674841a496869f4d (diff)
downloadbcm5719-llvm-c1867557d93d622f761b57af6e66e3e518bc0b9f.tar.gz
bcm5719-llvm-c1867557d93d622f761b57af6e66e3e518bc0b9f.zip
[Profile]: Add runtime interface to specify file handle for profile data.
Author: Sajjad Mirza Differential Revision: http://reviews.llvm.org/D62541 llvm-svn: 362676
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingUtil.h')
-rw-r--r--compiler-rt/lib/profile/InstrProfilingUtil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingUtil.h b/compiler-rt/lib/profile/InstrProfilingUtil.h
index 9cd0860fda2..efba94ca763 100644
--- a/compiler-rt/lib/profile/InstrProfilingUtil.h
+++ b/compiler-rt/lib/profile/InstrProfilingUtil.h
@@ -23,6 +23,8 @@ unsigned __llvm_profile_get_dir_mode(void);
int lprofLockFd(int fd);
int lprofUnlockFd(int fd);
+int lprofLockFileHandle(FILE *F);
+int lprofUnlockFileHandle(FILE *F);
/*! Open file \c Filename for read+write with write
* lock for exclusive access. The caller will block
OpenPOWER on IntegriCloud