diff options
author | Rui Ueyama <ruiu@google.com> | 2017-02-02 02:21:47 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-02-02 02:21:47 +0000 |
commit | 98469e4de5f0d32692be65f921f12204e04f1d8f (patch) | |
tree | fac4196d1d8a182fa8a238012d745dd2e8dd6ccd | |
parent | 9ff61776dfbb15074f4e859f9a7ff1220ee83c6b (diff) | |
download | bcm5719-llvm-98469e4de5f0d32692be65f921f12204e04f1d8f.tar.gz bcm5719-llvm-98469e4de5f0d32692be65f921f12204e04f1d8f.zip |
Accept `-trace-symbol foo` as well as `-trace-symbol=foo`.
llvm-svn: 293854
-rw-r--r-- | lld/ELF/Options.td | 3 | ||||
-rw-r--r-- | lld/test/ELF/trace-symbols.s | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index 25626ebf3ed..0fd16fc1b2c 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -234,7 +234,7 @@ def threads: F<"threads">, HelpText<"Run the linker multi-threaded">; def trace: F<"trace">, HelpText<"Print the names of the input files">; -def trace_symbol : J<"trace-symbol=">, HelpText<"Trace references to symbols">; +def trace_symbol : S<"trace-symbol">, HelpText<"Trace references to symbols">; def undefined: S<"undefined">, HelpText<"Force undefined symbol during linking">; @@ -315,6 +315,7 @@ def alias_strip_debug_S: Flag<["-"], "S">, Alias<strip_debug>; def alias_Tbss: J<"Tbss=">, Alias<Tbss>; def alias_Tdata: J<"Tdata=">, Alias<Tdata>; def alias_trace: Flag<["-"], "t">, Alias<trace>; +def trace_trace_symbol_eq : J<"trace-symbol=">, Alias<trace_symbol>; def alias_trace_symbol_y : JoinedOrSeparate<["-"], "y">, Alias<trace_symbol>; def alias_Ttext: J<"Ttext=">, Alias<Ttext>; def alias_Ttext_segment: S<"Ttext-segment">, Alias<Ttext>; diff --git a/lld/test/ELF/trace-symbols.s b/lld/test/ELF/trace-symbols.s index 7f6bca8be21..eb8e17c709a 100644 --- a/lld/test/ELF/trace-symbols.s +++ b/lld/test/ELF/trace-symbols.s @@ -10,7 +10,7 @@ # RUN: llvm-ar rcs %t1.a %t1 # RUN: llvm-ar rcs %t2.a %t2 -# RUN: ld.lld -y foo -trace-symbol=common -trace-symbol=hsymbol \ +# RUN: ld.lld -y foo -trace-symbol common -trace-symbol=hsymbol \ # RUN: %t %t1 %t2 -o %t3 2>&1 | FileCheck -check-prefix=OBJECTRFOO %s # OBJECTRFOO: trace-symbols.s.tmp: reference to foo |