Coverage Report

Created: 2019-02-21 13:17

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/include/llvm/DebugInfo/CodeView/FunctionId.h
Line
Count
Source (jump to first uncovered line)
1
//===- FunctionId.h ---------------------------------------------*- C++ -*-===//
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
#ifndef LLVM_DEBUGINFO_CODEVIEW_FUNCTIONID_H
10
#define LLVM_DEBUGINFO_CODEVIEW_FUNCTIONID_H
11
12
#include <cinttypes>
13
14
namespace llvm {
15
namespace codeview {
16
17
class FunctionId {
18
public:
19
  FunctionId() : Index(0) {}
20
21
  explicit FunctionId(uint32_t Index) : Index(Index) {}
22
23
  uint32_t getIndex() const { return Index; }
24
25
private:
26
  uint32_t Index;
27
};
28
29
0
inline bool operator==(const FunctionId &A, const FunctionId &B) {
30
0
  return A.getIndex() == B.getIndex();
31
0
}
32
33
0
inline bool operator!=(const FunctionId &A, const FunctionId &B) {
34
0
  return A.getIndex() != B.getIndex();
35
0
}
36
37
0
inline bool operator<(const FunctionId &A, const FunctionId &B) {
38
0
  return A.getIndex() < B.getIndex();
39
0
}
40
41
inline bool operator<=(const FunctionId &A, const FunctionId &B) {
42
  return A.getIndex() <= B.getIndex();
43
}
44
45
0
inline bool operator>(const FunctionId &A, const FunctionId &B) {
46
0
  return A.getIndex() > B.getIndex();
47
0
}
48
49
0
inline bool operator>=(const FunctionId &A, const FunctionId &B) {
50
0
  return A.getIndex() >= B.getIndex();
51
0
}
52
}
53
}
54
55
#endif