You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
961 B

//===- PathCache.h --------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_SUPPORT_PATHCACHE_H_
#define MCLD_SUPPORT_PATHCACHE_H_
#include "mcld/ADT/HashEntry.h"
#include "mcld/ADT/HashTable.h"
#include "mcld/ADT/StringHash.h"
#include "mcld/Support/Path.h"
namespace mcld {
namespace sys {
namespace fs {
typedef HashEntry<llvm::StringRef,
mcld::sys::fs::Path,
hash::StringCompare<llvm::StringRef> > HashEntryType;
typedef HashTable<HashEntryType,
hash::StringHash<hash::DJB>,
EntryFactory<HashEntryType> > PathCache;
} // namespace fs
} // namespace sys
} // namespace mcld
#endif // MCLD_SUPPORT_PATHCACHE_H_