From 8992cdfa97a0ea84e754f778d1392d390058d8c7 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Wed, 8 Jun 2016 22:32:03 +0000 Subject: [PATCH] [docs] Coverage: Clarify return value of __llvm_profile_write_file git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272215 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/SourceBasedCodeCoverage.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/SourceBasedCodeCoverage.rst b/docs/SourceBasedCodeCoverage.rst index 4425bdeb02..ff43c931ea 100644 --- a/docs/SourceBasedCodeCoverage.rst +++ b/docs/SourceBasedCodeCoverage.rst @@ -206,8 +206,9 @@ without using static initializers, do this manually: to ``__llvm_profile_write_file``. * Forward-declare ``int __llvm_profile_write_file(void)`` and call it to write - out a profile. Calling this function multiple times appends profile data to - an existing on-disk raw profile. + out a profile. This function returns 0 when it succeeds, and a non-zero value + otherwise. Calling this function multiple times appends profile data to an + existing on-disk raw profile. Drawbacks and limitations ========================= -- 2.40.0