//===- llvm/Support/FileSystem/UniqueID.h - UniqueID for files --*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file is cut out of llvm/Support/FileSystem.h to allow UniqueID to be // reused without bloating the includes. // //===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_FILESYSTEM_UNIQUEID_H #define LLVM_SUPPORT_FILESYSTEM_UNIQUEID_H #include "llvm/ADT/DenseMapInfo.h" #include "llvm/ADT/Hashing.h" #include <cstdint> #include <utility> namespace llvm { namespace sys { namespace fs { class UniqueID { … }; } // end namespace fs } // end namespace sys // Support UniqueIDs as DenseMap keys. template <> struct DenseMapInfo<llvm::sys::fs::UniqueID> { … }; } // end namespace llvm #endif // LLVM_SUPPORT_FILESYSTEM_UNIQUEID_H