[LPM] Fix the PPC attribute to be spelled 'global-dynamic'. This should

let the build bot make finish compiling stage2.

llvm-svn: 227391
This commit is contained in:
Chandler Carruth 2015-01-28 23:10:57 +00:00
parent 9198b33b48
commit b2fe3e5c35
1 changed files with 2 additions and 2 deletions

View File

@ -39,11 +39,11 @@ using namespace llvm;
// Clang, GCC, and all compatible compilers tend to use __thread. But we need
// to work aronud a bug in the combination of Clang's compilation of
// local-dynamic TLS and the ppc64 linker relocations which we do by forcing to
// general-dynamic.
// global-dynamic (called in most documents "general dynamic").
// FIXME: Make this conditional on the Clang version once this is fixed in
// top-of-tree.
#if defined(__clang__) && defined(__powerpc64__)
#define LLVM_THREAD_LOCAL __thread __attribute__((tls_model("general-dynamic")))
#define LLVM_THREAD_LOCAL __thread __attribute__((tls_model("global-dynamic")))
#else
#define LLVM_THREAD_LOCAL __thread
#endif