Rafael Espindola ef72e73da9 Use alias linkage and visibility to decide tls access mode.
This matches both what we do for the non-thread case and what gcc does.

With this patch clang would match gcc's behaviour in

static __thread int a = 42;
extern __thread int b __attribute__((alias("a")));
int *f(void) { return &a; }
int *g(void) { return &b; }

if not for pr19843. Manually writing the IL does produce the same access modes.

It is also a step in the direction of fixing pr19844.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209543 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-23 19:16:56 +00:00
..
2014-05-15 21:54:15 +00:00
2013-12-07 02:48:29 +00:00
2014-01-11 21:06:00 +00:00
2014-02-14 19:16:39 +00:00
2013-09-07 01:14:42 +00:00
2013-07-26 20:58:55 +00:00