1 //===- GUID.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_GUID_H
11 #define LLVM_DEBUGINFO_CODEVIEW_GUID_H
21 /// This represents the 'GUID' type from windows.h.
26 inline bool operator==(const GUID &LHS, const GUID &RHS) {
27 return 0 == ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid));
30 inline bool operator<(const GUID &LHS, const GUID &RHS) {
31 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) < 0;
34 inline bool operator<=(const GUID &LHS, const GUID &RHS) {
35 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) <= 0;
38 inline bool operator>(const GUID &LHS, const GUID &RHS) {
42 inline bool operator>=(const GUID &LHS, const GUID &RHS) {
46 inline bool operator!=(const GUID &LHS, const GUID &RHS) {
50 raw_ostream &operator<<(raw_ostream &OS, const GUID &Guid);
52 } // namespace codeview