diff options
author | Tobias Sargeant <tobiasjs@google.com> | 2016-05-23 18:58:48 +0100 |
---|---|---|
committer | Tobias Sargeant <tobiasjs@google.com> | 2016-05-23 18:58:48 +0100 |
commit | faeb1f9b2b45cd4e0bee0a677076cbe962034b75 (patch) | |
tree | 4990445530154b088838082978588d1d6322e0dd /src/client/linux/microdump_writer | |
parent | Add statistics about free space to microdump format. (diff) | |
download | breakpad-faeb1f9b2b45cd4e0bee0a677076cbe962034b75.tar.xz |
Functions only called by DumpFreeSpace need to be conditionally compiled.
BUG=525938
R=mark@chromium.org
Review URL: https://codereview.chromium.org/2008553002 .
Diffstat (limited to 'src/client/linux/microdump_writer')
-rw-r--r-- | src/client/linux/microdump_writer/microdump_writer.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/linux/microdump_writer/microdump_writer.cc b/src/client/linux/microdump_writer/microdump_writer.cc index 2091429c..ba10ee3a 100644 --- a/src/client/linux/microdump_writer/microdump_writer.cc +++ b/src/client/linux/microdump_writer/microdump_writer.cc @@ -62,6 +62,10 @@ using google_breakpad::UContextReader; const size_t kLineBufferSize = 2048; +#if !defined(__LP64__) +// The following are only used by DumpFreeSpace, so need to be compiled +// in conditionally in the same way. + template <typename Dst, typename Src> Dst saturated_cast(Src src) { if (src >= std::numeric_limits<Dst>::max()) @@ -122,6 +126,8 @@ size_t NextOrderedMapping( return best; } +#endif // !__LP64__ + class MicrodumpWriter { public: MicrodumpWriter(const ExceptionHandler::CrashContext* context, |