aboutsummaryrefslogtreecommitdiff
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
parentFix group signature handling for relocatable link, add bootstrap (diff)
downloadbinutils-gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.gz
binutils-gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.bz2
binutils-gdb-fbfba5088712eb014b9051baa71f9636359d159e.zip
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 2467295c857..67ce1e6eff9 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