[LPM] Try to work around a bug with local-dynamic TLS on PowerPC 64.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 28 Jan 2015 19:29:22 +0000 (19:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 28 Jan 2015 19:29:22 +0000 (19:29 +0000)
commit2aefa011df74864377242e413033166a125ef793
treeddb71bca10db7aefd4b5f6959ace7179ea3b53ab
parentafe3498413029d158aa6b0da6b05abc5c307dea6
[LPM] Try to work around a bug with local-dynamic TLS on PowerPC 64.

Sadly, this precludes optimizing it down to initial-exec or local-exec
when statically linking, and in general makes the code slower on PPC 64,
but there's nothing else for it until we can arrange to produce the
correct bits for the linker.

Lots of thanks to Ulirch for tracking this down and Bill for working on
the long-term fix to LLVM so that we can relegate this to old host
clang versions.

I'll be watching the PPC build bots to make sure this effectively
revives them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227352 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/PrettyStackTrace.cpp