From e27d3110651f72bdecc9d557b08692cb0b6abf00 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Mon, 4 Jan 2016 20:00:47 +0000 Subject: [PATCH 1/1] Update documantation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256774 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CoverageMappingFormat.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/CoverageMappingFormat.rst b/docs/CoverageMappingFormat.rst index 9ac476c88b3..ea40a1ddb8c 100644 --- a/docs/CoverageMappingFormat.rst +++ b/docs/CoverageMappingFormat.rst @@ -245,11 +245,15 @@ The coverage mapping variable generated by Clang is: .. code-block:: llvm - @__llvm_coverage_mapping = internal constant { i32, i32, i32, i32, [2 x { i8*, i32, i32 }], [40 x i8] } - { i32 2, ; The number of function records - i32 20, ; The length of the string that contains the encoded translation unit filenames - i32 20, ; The length of the string that contains the encoded coverage mapping data - i32 0, ; Coverage mapping format version + @__llvm_coverage_mapping = internal constant { { i32, i32, i32, i32 }, [2 x { i8*, i32, i32 }], [40 x i8] } + { + { i32, i32, i32, i32 } ; Coverage map header + { + i32 2, ; The number of function records + i32 20, ; The length of the string that contains the encoded translation unit filenames + i32 20, ; The length of the string that contains the encoded coverage mapping data + i32 0, ; Coverage mapping format version + }, [2 x { i8*, i32, i32 }] [ ; Function records { i8*, i32, i32 } { i8* getelementptr inbounds ([3 x i8]* @__llvm_profile_name_foo, i32 0, i32 0), ; Function's name i32 3, ; Function's name length -- 2.34.1