blob: 8b615568fda686e362ed200e91ab2e0aa03520f2 [file] [log] [blame]
Shih-wei Liao5460a1f2012-03-16 22:41:16 -07001//===- PathCache.h --------------------------------------------------------===//
2//
3// The MCLinker Project
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
Stephen Hines37b74a32014-11-26 18:48:20 -08009#ifndef MCLD_SUPPORT_PATHCACHE_H_
10#define MCLD_SUPPORT_PATHCACHE_H_
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070011
Stephen Hines37b74a32014-11-26 18:48:20 -080012#include "mcld/ADT/HashEntry.h"
13#include "mcld/ADT/HashTable.h"
14#include "mcld/ADT/StringHash.h"
15#include "mcld/Support/Path.h"
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070016
17namespace mcld {
Stephen Hines37b74a32014-11-26 18:48:20 -080018namespace sys {
19namespace fs {
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070020
Stephen Hines37b74a32014-11-26 18:48:20 -080021typedef HashEntry<llvm::StringRef,
22 mcld::sys::fs::Path,
23 hash::StringCompare<llvm::StringRef> > HashEntryType;
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070024
Stephen Hines37b74a32014-11-26 18:48:20 -080025typedef HashTable<HashEntryType,
26 hash::StringHash<hash::DJB>,
27 EntryFactory<HashEntryType> > PathCache;
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070028
Stephen Hines37b74a32014-11-26 18:48:20 -080029} // namespace fs
30} // namespace sys
31} // namespace mcld
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070032
Stephen Hines37b74a32014-11-26 18:48:20 -080033#endif // MCLD_SUPPORT_PATHCACHE_H_