[ELF] - Versionscript: support wildcards for extern "c++" tag.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 30 Aug 2016 09:35:03 +0000 (09:35 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 30 Aug 2016 09:35:03 +0000 (09:35 +0000)
commit397cd87a69aed2be3ec96a9627bb8e9565abe701
tree901c923c0ebfadb27a3e34ecfa42b239ec5125e0
parentc3ec9d0cbfb702e987f6de06c5361c0f21b60a52
[ELF] - Versionscript: support wildcards for extern "c++" tag.

Previously for extern keyword only names in quotes (exact match) was supported.
Patch adds support for wildcards, so next scripts can be handled properly:

LIBSAMPLE_1.0 {
   global:
     extern "C++" {
       foo*;
   };
 };

Differential revision: https://reviews.llvm.org/D23794

llvm-svn: 280067
lld/ELF/SymbolTable.cpp
lld/test/ELF/version-script-extern-wildcards.s [new file with mode: 0644]