[dsymutil] Apply recursion workaround for threading
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 3 Apr 2018 18:01:18 +0000 (18:01 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 3 Apr 2018 18:01:18 +0000 (18:01 +0000)
commit4fad76ccdec605bb0f272e8d5a9d51276d3eed2c
tree8ca7ccfa5c2e6b3ea29686b30760adf8e0f37475
parentcc013f62c16abe44886b06b46efaae9b8139d1f9
[dsymutil] Apply recursion workaround for threading

The DwarfLinker can have some very deep recursion that can max out the
(significantly smaller) stack when using threads. We don't want this
limitation when we only have a single thread. We already have this
workaround for the architecture-related threading. This patch applies
the same workaround to the parallel analysis and cloning.

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

llvm-svn: 329093
llvm/tools/dsymutil/DwarfLinker.cpp
llvm/tools/dsymutil/dsymutil.cpp
llvm/tools/dsymutil/dsymutil.h