aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-06 20:32:10 +0000
committerIan Lance Taylor <iant@google.com>2008-02-06 20:32:10 +0000
commitfbfba5088712eb014b9051baa71f9636359d159e (patch)
tree6836ec1f682dc1c4954429d9be124c268d530526 /gold/parameters.h
parent755ab8af10558c40e5090e92c46bbbd89815c292 (diff)
downloadgdb-fbfba5088712eb014b9051baa71f9636359d159e.zip
gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.gz
gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.bz2
Support creating empty output when there are no input objects.
Diffstat (limited to 'gold/parameters.h')
-rw-r--r--gold/parameters.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/parameters.h b/gold/parameters.h
index 2467295..67ce1e6 100644
--- a/gold/parameters.h
+++ b/gold/parameters.h
@@ -200,6 +200,11 @@ class Parameters
return this->doing_static_link_;
}
+ // Return whether the target field has been set.
+ bool
+ is_target_valid() const
+ { return this->is_target_valid_; }
+
// The target of the output file we are generating.
Target*
target() const