// compressed_output.cc -- manage compressed output sections for gold
-// Copyright 2007 Free Software Foundation, Inc.
+// Copyright 2007, 2008 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
#endif
#include "parameters.h"
+#include "options.h"
#include "compressed_output.h"
namespace gold
*compressed_data = new char[*compressed_size];
int compress_level;
- if (parameters->optimization_level() >= 1)
+ if (parameters->options().optimize() >= 1)
compress_level = 9;
else
compress_level = 1;
this->write_to_postprocessing_buffer();
bool success = false;
- if (this->options_->zlib_compress_debug_sections())
+ if (strcmp(this->options_->compress_debug_sections(), "zlib") == 0)
success = zlib_compress(uncompressed_data, uncompressed_size,
&this->data_, &compressed_size);
if (success)