[ELF] - Use std::regex instead of hand written logic in elf::globMatch()
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 2 Sep 2016 21:17:20 +0000 (21:17 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 2 Sep 2016 21:17:20 +0000 (21:17 +0000)
commitc91930a17f2c32fefe5eb5caeb767462655a12d3
treea10b5e29c2023484cb95abfece62c3507e531a81
parent54150db2328562139021f259038a3978cc6b521e
[ELF] - Use std::regex instead of hand written logic in elf::globMatch()

Use std::regex instead of hand written matcher.

Patch based on code and ideas of Rui Ueyama.

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

llvm-svn: 280544
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/Strings.cpp
lld/ELF/Strings.h
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/test/ELF/wildcards2.s [new file with mode: 0644]