[lld] r293854 - Accept `-trace-symbol foo` as well as `-trace-symbol=foo`.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 18:21:48 PST 2017


Author: ruiu
Date: Wed Feb  1 20:21:47 2017
New Revision: 293854

URL: http://llvm.org/viewvc/llvm-project?rev=293854&view=rev
Log:
Accept `-trace-symbol foo` as well as `-trace-symbol=foo`.

Modified:
    lld/trunk/ELF/Options.td
    lld/trunk/test/ELF/trace-symbols.s

Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=293854&r1=293853&r2=293854&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Wed Feb  1 20:21:47 2017
@@ -234,7 +234,7 @@ def threads: F<"threads">, HelpText<"Run
 
 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"
 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>;

Modified: lld/trunk/test/ELF/trace-symbols.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/trace-symbols.s?rev=293854&r1=293853&r2=293854&view=diff
==============================================================================
--- lld/trunk/test/ELF/trace-symbols.s (original)
+++ lld/trunk/test/ELF/trace-symbols.s Wed Feb  1 20:21:47 2017
@@ -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
 




More information about the llvm-commits mailing list