Use globMatch() instead of llvm::regex in linker scripts
authorEugene Leviant <evgeny.leviant@gmail.com>
Thu, 3 Nov 2016 10:54:58 +0000 (10:54 +0000)
committerEugene Leviant <evgeny.leviant@gmail.com>
Thu, 3 Nov 2016 10:54:58 +0000 (10:54 +0000)
commitdb68845485d832f44b4a354312ad4645dc545f5c
tree892da6a3807ca9e393d3468d94860d993fb4016f
parent3aa330f98aa7706853c1a4c01e0e9f2780fced16
Use globMatch() instead of llvm::regex in linker scripts

This can speed up lld up to 5 times when linking applications
with large number of sections and using linker script.

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

llvm-svn: 285895
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/Strings.cpp
lld/ELF/Strings.h