summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-04-19 00:33:15 +0000
committerJustin Bogner <mail@justinbogner.com>2014-04-19 00:33:15 +0000
commite80817162865c8551b2058b1cebdd6ab81a4687a (patch)
tree047b6763ac1f278042a94b8f50bb602956dcd3ec /llvm/lib/ProfileData
parent4435e4157afbf3eed4070770ef377a4e414f3f7f (diff)
downloadbcm5719-llvm-e80817162865c8551b2058b1cebdd6ab81a4687a.tar.gz
bcm5719-llvm-e80817162865c8551b2058b1cebdd6ab81a4687a.zip
OnDiskHashTable: Audit types and use offset_type consistently
llvm-svn: 206675
Diffstat (limited to 'llvm/lib/ProfileData')
-rw-r--r--llvm/lib/ProfileData/InstrProfWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index 1a3eae1db9d..19b6890b36b 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -42,21 +42,21 @@ public:
using namespace llvm::support;
endian::Writer<little> LE(Out);
- unsigned N = K.size();
+ offset_type N = K.size();
LE.write<offset_type>(N);
- unsigned M = (1 + V.Counts.size()) * sizeof(uint64_t);
+ offset_type M = (1 + V.Counts.size()) * sizeof(uint64_t);
LE.write<offset_type>(M);
return std::make_pair(N, M);
}
- static void EmitKey(raw_ostream &Out, key_type_ref K, unsigned N){
+ static void EmitKey(raw_ostream &Out, key_type_ref K, offset_type N){
Out.write(K.data(), N);
}
static void EmitData(raw_ostream &Out, key_type_ref, data_type_ref V,
- unsigned) {
+ offset_type) {
using namespace llvm::support;
endian::Writer<little> LE(Out);
LE.write<uint64_t>(V.Hash);
OpenPOWER on IntegriCloud