diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-04-19 00:33:15 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-04-19 00:33:15 +0000 |
commit | 55c1e1bd26b57ef524eff3524a350a59e33a04c5 (patch) | |
tree | 71a9a1ff5db8056b956495245edd747f5e12f451 /lib | |
parent | e382065b82e0a4858019c7ca4ce1c11227c7bd67 (diff) | |
download | llvm-55c1e1bd26b57ef524eff3524a350a59e33a04c5.tar.gz llvm-55c1e1bd26b57ef524eff3524a350a59e33a04c5.tar.bz2 llvm-55c1e1bd26b57ef524eff3524a350a59e33a04c5.tar.xz |
OnDiskHashTable: Audit types and use offset_type consistently
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ProfileData/InstrProfWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ProfileData/InstrProfWriter.cpp b/lib/ProfileData/InstrProfWriter.cpp index 1a3eae1db9..19b6890b36 100644 --- a/lib/ProfileData/InstrProfWriter.cpp +++ b/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); |