[PATCH] D62541: Adding a function for setting coverage output file.

Sajjad Mirza via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 18:27:14 PDT 2019


sajjadm updated this revision to Diff 202836.
sajjadm added a comment.

Fixed lock/unlock code.

Removed the locking for WIN32 builds because the lock has to be enabled
in CreateFileA, so it will be user code's responsibility in this case.

Added unlocking after write in case __llvm_profile_write_file is
manually invoked by user code before the end of the process.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62541/new/

https://reviews.llvm.org/D62541

Files:
  compiler-rt/lib/profile/InstrProfiling.h
  compiler-rt/lib/profile/InstrProfilingFile.c
  compiler-rt/test/profile/instrprof-set-file-object-merging.c
  compiler-rt/test/profile/instrprof-set-file-object.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62541.202836.patch
Type: text/x-patch
Size: 9544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190604/0202dd5b/attachment.bin>


More information about the llvm-commits mailing list