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)
commit1f59bf44410889fc91c4acdfc5da21572ff6d3fa
treea4e7885c1de986bd4e357e3d21fd297dddcdf5db
parent55c9dbf599bb86066bb16bc6f358c71bc6b6bffc
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*.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224225 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ThreadLocal.h
lib/Support/ThreadLocal.cpp
lib/Support/Unix/ThreadLocal.inc
lib/Support/Windows/ThreadLocal.inc
unittests/Support/ThreadLocalTest.cpp