Functions only called by DumpFreeSpace need to be conditionally compiled.

BUG=525938
R=mark@chromium.org

Review URL: https://codereview.chromium.org/2008553002 .
This commit is contained in:
Tobias Sargeant 2016-05-23 18:58:48 +01:00
parent adca10c8ff
commit faeb1f9b2b

View file

@ -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,