ThreadLocal: Return a mutable pointer if templated with a non-const type
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 15 Dec 2014 01:04:45 +0000 (01:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 15 Dec 2014 01:04:45 +0000 (01:04 +0000)
commit421c89debc9616598ddc2bb5bbfd57d096f21e2d
treedcc2eca485392a01c5b0a07603a862b669260c16
parent574f6d460860cd8baacf7d8d6258a9ea30040109
ThreadLocal: Return a mutable pointer if templated with a non-const type

It makes more sense for ThreadLocal<const T>::get to return a const T*
and ThreadLocal<T>::get to return a T*.

llvm-svn: 224225
llvm/include/llvm/Support/ThreadLocal.h
llvm/lib/Support/ThreadLocal.cpp
llvm/lib/Support/Unix/ThreadLocal.inc
llvm/lib/Support/Windows/ThreadLocal.inc
llvm/unittests/Support/ThreadLocalTest.cpp