summaryrefslogtreecommitdiffstats
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-06-23 06:39:47 +0000
committerIan Lance Taylor <ian@airs.com>2009-06-23 06:39:47 +0000
commite6a307bae3aac48d98d01f51308e238aeabbdfd4 (patch)
tree757dcf3896fda91c7ffc280de3add37f3ca7eb41 /gold/options.h
parent3ee173de46efe0473d4aa2f63b16fe5943599e2b (diff)
downloadppe42-binutils-e6a307bae3aac48d98d01f51308e238aeabbdfd4.tar.gz
ppe42-binutils-e6a307bae3aac48d98d01f51308e238aeabbdfd4.zip
PR 10030
* yyscript.y: Parse TARGET. * script.cc (script_set_target): New function. * script-c.h (script_set_target): Declare. * options.cc (General_options::string_to_object_format): Rename from string_to_object_format in anonymous namespace. Change callers. * options.h (class General_options): Declare string_to_object_format.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index c31f6b101a..aac0439c07 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -988,6 +988,11 @@ class General_options
OBJECT_FORMAT_BINARY
};
+ // Convert a string to an Object_format. Gives an error if the
+ // string is not recognized.
+ static Object_format
+ string_to_object_format(const char* arg);
+
// Note: these functions are not very fast.
Object_format format_enum() const;
Object_format oformat_enum() const;
OpenPOWER on IntegriCloud