HomePhabricator

[ELF] Improve --export-dynamic-symbol performance by checking whether wildcard…

Authored by MaskRay on Jun 17 2020, 5:11 PM.

Description

[ELF] Improve --export-dynamic-symbol performance by checking whether wildcard is really used

A hasWildcard pattern iterates over symVector, which can be slow when there
are many --export-dynamic-symbol. In optimistic cases, most patterns don't use
a wildcard character. hasWildcard: false can avoid a symbol table iteration.

While here, add two tests using [ and ?, respectively.

Details

Committed
MaskRayJun 17 2020, 5:12 PM
Parents
rG7ee758d691b2: [WebAssembly] MC: Fix for data aliases with offsets (getelementptr)
Branches
Unknown
Tags
Unknown