15460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//===- PathCache.h --------------------------------------------------------===// 25460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 35460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// The MCLinker Project 45460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 55460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// This file is distributed under the University of Illinois Open Source 65460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// License. See LICENSE.TXT for details. 75460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 85460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//===----------------------------------------------------------------------===// 937b74a387bb3993387029859c2d9d051c41c724eStephen Hines#ifndef MCLD_SUPPORT_PATHCACHE_H_ 1037b74a387bb3993387029859c2d9d051c41c724eStephen Hines#define MCLD_SUPPORT_PATHCACHE_H_ 115460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 1237b74a387bb3993387029859c2d9d051c41c724eStephen Hines#include "mcld/ADT/HashEntry.h" 1337b74a387bb3993387029859c2d9d051c41c724eStephen Hines#include "mcld/ADT/HashTable.h" 1437b74a387bb3993387029859c2d9d051c41c724eStephen Hines#include "mcld/ADT/StringHash.h" 1537b74a387bb3993387029859c2d9d051c41c724eStephen Hines#include "mcld/Support/Path.h" 165460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 175460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaonamespace mcld { 1837b74a387bb3993387029859c2d9d051c41c724eStephen Hinesnamespace sys { 1937b74a387bb3993387029859c2d9d051c41c724eStephen Hinesnamespace fs { 205460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 2137b74a387bb3993387029859c2d9d051c41c724eStephen Hinestypedef HashEntry<llvm::StringRef, 2237b74a387bb3993387029859c2d9d051c41c724eStephen Hines mcld::sys::fs::Path, 2337b74a387bb3993387029859c2d9d051c41c724eStephen Hines hash::StringCompare<llvm::StringRef> > HashEntryType; 245460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 2537b74a387bb3993387029859c2d9d051c41c724eStephen Hinestypedef HashTable<HashEntryType, 2637b74a387bb3993387029859c2d9d051c41c724eStephen Hines hash::StringHash<hash::DJB>, 2737b74a387bb3993387029859c2d9d051c41c724eStephen Hines EntryFactory<HashEntryType> > PathCache; 285460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 2937b74a387bb3993387029859c2d9d051c41c724eStephen Hines} // namespace fs 3037b74a387bb3993387029859c2d9d051c41c724eStephen Hines} // namespace sys 3137b74a387bb3993387029859c2d9d051c41c724eStephen Hines} // namespace mcld 325460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 3337b74a387bb3993387029859c2d9d051c41c724eStephen Hines#endif // MCLD_SUPPORT_PATHCACHE_H_ 34