// compressed_output.cc -- manage compressed debug sections for gold
-// Copyright 2007, 2008, 2010 Free Software Foundation, Inc.
+// Copyright (C) 2007-2015 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// MA 02110-1301, USA.
#include "gold.h"
-
-#ifdef HAVE_ZLIB_H
#include <zlib.h>
-#endif
-
#include "parameters.h"
#include "options.h"
#include "compressed_output.h"
namespace gold
{
-#ifdef HAVE_ZLIB_H
-
// Compress UNCOMPRESSED_DATA of size UNCOMPRESSED_SIZE. Returns true
// if it successfully compressed, false if it failed for any reason
// (including not having zlib support in the library). If it returns
return true;
}
-#else // !defined(HAVE_ZLIB_H)
-
-static bool
-zlib_compress(const unsigned char*, unsigned long,
- unsigned char**, unsigned long*)
-{
- return false;
-}
-
-static bool
-zlib_decompress(const unsigned char*, unsigned long,
- unsigned char**, unsigned long*)
-{
- return false;
-}
-
-#endif // !defined(HAVE_ZLIB_H)
-
// Read the compression header of a compressed debug section and return
// the uncompressed size.