Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/DebugInfo/CodeView/Line.cpp
Line
Count
Source
1
//===-- Line.cpp ----------------------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "llvm/DebugInfo/CodeView/Line.h"
10
11
using namespace llvm;
12
using namespace codeview;
13
14
1.29k
LineInfo::LineInfo(uint32_t StartLine, uint32_t EndLine, bool IsStatement) {
15
1.29k
  LineData = StartLine & StartLineMask;
16
1.29k
  uint32_t LineDelta = EndLine - StartLine;
17
1.29k
  LineData |= (LineDelta << EndLineDeltaShift) & EndLineDeltaMask;
18
1.29k
  if (IsStatement) {
19
1.28k
    LineData |= StatementFlag;
20
1.28k
  }
21
1.29k
}