[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)
commitbe09eb75aae62dd1c32a1b405b940808e6ba6815
tree43e93c7a674b8baf83a095ee9567c9c3d707224f
parent23cf2e2f9712e1f9e129e195bc859ac58f29c423
[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.

llvm-svn: 227352
llvm/lib/Support/PrettyStackTrace.cpp