1 //===- FunctionId.h ---------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_CODEVIEW_FUNCTIONID_H
11 #define LLVM_DEBUGINFO_CODEVIEW_FUNCTIONID_H
20 FunctionId() : Index(0) {}
22 explicit FunctionId(uint32_t Index) : Index(Index) {}
24 uint32_t getIndex() const { return Index; }
30 inline bool operator==(const FunctionId &A, const FunctionId &B) {
31 return A.getIndex() == B.getIndex();
34 inline bool operator!=(const FunctionId &A, const FunctionId &B) {
35 return A.getIndex() != B.getIndex();
38 inline bool operator<(const FunctionId &A, const FunctionId &B) {
39 return A.getIndex() < B.getIndex();
42 inline bool operator<=(const FunctionId &A, const FunctionId &B) {
43 return A.getIndex() <= B.getIndex();
46 inline bool operator>(const FunctionId &A, const FunctionId &B) {
47 return A.getIndex() > B.getIndex();
50 inline bool operator>=(const FunctionId &A, const FunctionId &B) {
51 return A.getIndex() >= B.getIndex();