1 //===- Hash.h - PDB hash functions ------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef LLVM_DEBUGINFO_PDB_RAW_HASH_H 11 #define LLVM_DEBUGINFO_PDB_RAW_HASH_H 12 13 #include "llvm/ADT/ArrayRef.h" 14 #include "llvm/ADT/StringRef.h" 15 #include <stdint.h> 16 17 namespace llvm { 18 namespace pdb { 19 uint32_t hashStringV1(StringRef Str); 20 uint32_t hashStringV2(StringRef Str); 21 uint32_t hashBufferV8(ArrayRef<uint8_t> Data); 22 } 23 } 24 25 #endif 26