aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dwarf/bytereader.cc6
-rw-r--r--src/common/dwarf/bytereader.h2
-rw-r--r--src/common/module.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/common/dwarf/bytereader.cc b/src/common/dwarf/bytereader.cc
index 95193834..8721b7a5 100644
--- a/src/common/dwarf/bytereader.cc
+++ b/src/common/dwarf/bytereader.cc
@@ -123,11 +123,11 @@ uint64 ByteReader::ReadEncodedPointer(const char *buffer,
// First, find the offset to START from the closest prior aligned
// address.
- uint64_t skew = section_base_ & (AddressSize() - 1);
+ size_t skew = section_base_ & (AddressSize() - 1);
// Now find the offset from that aligned address to buffer.
- uint64_t offset = skew + (buffer - buffer_base_);
+ off_t offset = skew + (buffer - buffer_base_);
// Round up to the next boundary.
- uint64_t aligned = (offset + AddressSize() - 1) & -AddressSize();
+ size_t aligned = (offset + AddressSize() - 1) & -AddressSize();
// Convert back to a pointer.
const char *aligned_buffer = buffer_base_ + (aligned - skew);
// Finally, store the length and actually fetch the pointer.
diff --git a/src/common/dwarf/bytereader.h b/src/common/dwarf/bytereader.h
index aaa97c4f..f01f319d 100644
--- a/src/common/dwarf/bytereader.h
+++ b/src/common/dwarf/bytereader.h
@@ -301,7 +301,7 @@ class ByteReader {
// Base addresses for Linux C++ exception handling data's encoded pointers.
bool have_section_base_, have_text_base_, have_data_base_;
bool have_function_base_;
- uint64 section_base_, text_base_, data_base_, function_base_;
+ size_t section_base_, text_base_, data_base_, function_base_;
const char *buffer_base_;
};
diff --git a/src/common/module.h b/src/common/module.h
index 8aea99f8..8c20cea0 100644
--- a/src/common/module.h
+++ b/src/common/module.h
@@ -269,12 +269,12 @@ class Module {
// A map from filenames to File structures. The map's keys are
// pointers to the Files' names.
typedef map<const string *, File *, CompareStringPtrs> FileByNameMap;
+ typedef set<Function *, FunctionCompare> FunctionSet;
// The module owns all the files and functions that have been added
// to it; destroying the module frees the Files and Functions these
// point to.
- FileByNameMap files_; // This module's source files.
- typedef set<Function *, FunctionCompare> FunctionSet;
+ FileByNameMap files_; // This module's source files.
FunctionSet functions_; // This module's functions.
// The module owns all the call frame info entries that have been