aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-12 05:51:25 +0000
committerIan Lance Taylor <iant@google.com>2007-10-12 05:51:25 +0000
commite44fcf3bcf912ddf4ce94f9c3f71c253d473d692 (patch)
tree3f5de3fdbbc7b5ba332f8d2123f017c2e8437ce6 /gold/options.h
parent6ca8706da5d2154ee86544024f708fda30efba26 (diff)
downloadgdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.zip
gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.tar.gz
gdb-e44fcf3bcf912ddf4ce94f9c3f71c253d473d692.tar.bz2
Add --stats option to print runtime and memory usage statistics.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index a11b68c..9848639 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -169,6 +169,11 @@ class General_options
is_static() const
{ return this->is_static_; }
+ // --statis: Print resource usage statistics.
+ bool
+ print_stats() const
+ { return this->print_stats_; }
+
// --sysroot: The system root of a cross-linker.
const std::string&
sysroot() const
@@ -252,6 +257,10 @@ class General_options
{ this->is_static_ = true; }
void
+ set_stats()
+ { this->print_stats_ = true; }
+
+ void
set_sysroot(const char* arg)
{ this->sysroot_ = arg; }
@@ -275,6 +284,7 @@ class General_options
Dir_list rpath_link_;
bool is_shared_;
bool is_static_;
+ bool print_stats_;
std::string sysroot_;
};