示例#1
0
文件: Indexing.cpp 项目: wdu/clang
 static unsigned getHashValue(const PPRegion &S) {
   llvm::FoldingSetNodeID ID;
   ID.AddInteger(S.getIno());
   ID.AddInteger(S.getDev());
   ID.AddInteger(S.getOffset());
   ID.AddInteger(S.getModTime());
   return ID.ComputeHash();
 }
示例#2
0
 static unsigned getHashValue(const PPRegion &S) {
   llvm::FoldingSetNodeID ID;
   const llvm::sys::fs::UniqueID &UniqueID = S.getUniqueID();
   ID.AddInteger(UniqueID.getFile());
   ID.AddInteger(UniqueID.getDevice());
   ID.AddInteger(S.getOffset());
   ID.AddInteger(S.getModTime());
   return ID.ComputeHash();
 }