projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
verify-uselistorder: Force -preserve-bc-use-list-order
[oota-llvm.git]
/
lib
/
ProfileData
/
InstrProfIndexed.h
diff --git
a/lib/ProfileData/InstrProfIndexed.h
b/lib/ProfileData/InstrProfIndexed.h
index 87eb4c3a0272963adc16e817c5d6672fab1258cb..c2bc46c9dbfa0ab5274db9cf735412bb89226cd1 100644
(file)
--- a/
lib/ProfileData/InstrProfIndexed.h
+++ b/
lib/ProfileData/InstrProfIndexed.h
@@
-11,9
+11,10
@@
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_
PROFILEDATA_INSTRPROF_INDEXED_H_
-#define LLVM_
PROFILEDATA_INSTRPROF_INDEXED_H_
+#ifndef LLVM_
LIB_PROFILEDATA_INSTRPROFINDEXED_H
+#define LLVM_
LIB_PROFILEDATA_INSTRPROFINDEXED_H
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MD5.h"
namespace llvm {
#include "llvm/Support/MD5.h"
namespace llvm {
@@
-36,7
+37,7
@@
static inline uint64_t MD5Hash(StringRef Str) {
return endian::read<uint64_t, little, unaligned>(Result);
}
return endian::read<uint64_t, little, unaligned>(Result);
}
-uint64_t ComputeHash(HashT Type, StringRef K) {
+
static inline
uint64_t ComputeHash(HashT Type, StringRef K) {
switch (Type) {
case HashT::MD5:
return IndexedInstrProf::MD5Hash(K);
switch (Type) {
case HashT::MD5:
return IndexedInstrProf::MD5Hash(K);
@@
-45,10
+46,10
@@
uint64_t ComputeHash(HashT Type, StringRef K) {
}
const uint64_t Magic = 0x8169666f72706cff; // "\xfflprofi\x81"
}
const uint64_t Magic = 0x8169666f72706cff; // "\xfflprofi\x81"
-const uint64_t Version =
1
;
+const uint64_t Version =
2
;
const HashT HashType = HashT::MD5;
}
} // end namespace llvm
const HashT HashType = HashT::MD5;
}
} // end namespace llvm
-#endif
// LLVM_PROFILEDATA_INSTRPROF_INDEXED_H_
+#endif