// parameters.cc -- general parameters for a link using gold
-// Copyright 2006, 2007 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// For speed, we convert the options() debug var from a string to an
// enum (from debug.h).
this->debug_ = debug_string_to_enum(this->options().debug());
+ // If --verbose is set, it acts as "--debug=files".
+ if (options->verbose())
+ this->debug_ |= DEBUG_FILES;
}
void
Parameters::default_target() const
{
gold_assert(this->options_valid());
- if (this->options().oformat() != NULL)
+ if (this->options().user_set_oformat())
{
const Target* target
= select_target_by_name(this->options().oformat());