diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-02 14:21:24 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-10-02 14:21:24 +0000 |
commit | 327b178dd6712ee1663eefc76c35eda79bd1cc58 (patch) | |
tree | 738ccb0f8cdc6e4ecb43bc71aa0764b83623b250 | |
parent | 67e06ddb511eb25732f7bb029210940fa49a2f2f (diff) | |
download | bcm5719-llvm-327b178dd6712ee1663eefc76c35eda79bd1cc58.tar.gz bcm5719-llvm-327b178dd6712ee1663eefc76c35eda79bd1cc58.zip |
Accept some options with both -- and -.
This matches what both gold and bfd ld accept.
llvm-svn: 249134
-rw-r--r-- | lld/ELF/Options.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index 05468ee6b1d..e0b08a95342 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -12,7 +12,7 @@ def L : Joined<["-"], "L">, MetaVarName<"<dir>">, def allow_multiple_definition: Flag<["--"], "allow-multiple-definition">, HelpText<"Allow multiple definitions">; -def allow_shlib_undefined : Flag<["--"], "allow-shlib-undefined">; +def allow_shlib_undefined : Flag<["--", "-"], "allow-shlib-undefined">; def discard_all : Flag<["-"], "discard-all">, HelpText<"Delete all local symbols">; @@ -29,7 +29,7 @@ def dynamic_linker : Separate<["-"], "dynamic-linker">, def entry : Separate<["--", "-"], "entry">, MetaVarName<"<entry>">, HelpText<"Name of entry point symbol">; -def export_dynamic : Flag<["--"], "export-dynamic">, +def export_dynamic : Flag<["--", "-"], "export-dynamic">, HelpText<"Put symbols in the dynamic symbol table">; def l : Joined<["-"], "l">, MetaVarName<"<libName>">, |