llvm-project/lld/test
Rui Ueyama 69c778c084 Implement almost-zero-cost --trace-symbol.
--trace-symbol is a command line option to watch a symbol.
Previosly, we looked up a hash table for a new symbol if the
option is given. Any code that looks up a hash table for each
symbol is expensive because the linker handles a lot of symbols.
In our design, we look up a hash table strictly only once
for a symbol, so --trace-symbol was an exception.

This patch improves efficiency of the option by merging the
hash table into the symbol table.

Instead of looking up a separate hash table with a string,
this patch sets `Traced` flag to symbols specified by --trace-symbol.
So, if you insert a symbol and get a symbol with `Traced` flag on,
you know that you need to print out a log message for the symbol.
This is nearly zero cost.

llvm-svn: 275716
2016-07-17 17:50:09 +00:00
..
COFF [yaml2obj] Updating LLD tests to account for LLVM r273915 2016-06-27 20:17:08 +00:00
Driver/Inputs Remove the old ELF linker. 2016-02-28 00:10:58 +00:00
ELF Implement almost-zero-cost --trace-symbol. 2016-07-17 17:50:09 +00:00
Unit Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:09:39 +00:00
darwin Add the GC commandline options and throw errors if they are used 2016-01-15 17:39:02 +00:00
mach-o [lld][MachO] Add support for x86-64 negDelta64 references and fix negDelta32. 2016-06-25 00:29:54 +00:00
CMakeLists.txt Add dependency to llvm-dis. 2016-03-14 23:16:13 +00:00
lit.cfg This now works on unix too. 2016-07-07 13:52:04 +00:00
lit.site.cfg.in Correctly define "zlib" feature. 2016-07-07 03:55:57 +00:00