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(); }
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(); }