[docs] Corrections w.r.t V2 of the coverage mapping format
authorVedant Kumar <vsk@apple.com>
Mon, 28 Mar 2016 22:16:01 +0000 (22:16 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 28 Mar 2016 22:16:01 +0000 (22:16 +0000)
llvm-svn: 264679

llvm/docs/CoverageMappingFormat.rst

index 5e1b192..158255a 100644 (file)
@@ -251,14 +251,14 @@ The coverage mapping variable generated by Clang has 3 fields:
 
 .. code-block:: llvm
 
-  @__llvm_coverage_mapping = internal constant { { i32, i32, i32, i32 }, [2 x { i8*, i32, i32, i64 }], [40 x i8] }
+  @__llvm_coverage_mapping = internal constant { { i32, i32, i32, i32 }, [2 x { i64, i32, i64 }], [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
+      i32 1,  ; Coverage mapping format version
     },
     [2 x { i64, i32, i64 }] [ ; Function records
      { i64, i32, i64 } {
@@ -296,7 +296,7 @@ The coverage mapping header has the following fields:
 
 * The length of the string in the third field of *__llvm_coverage_mapping* that contains the encoded coverage mapping data.
 
-* The format version. 0 is the first (current) version of the coverage mapping format.
+* The format version. The current version is 2 (encoded as a 1).
 
 .. _function records: