Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ThreadLocal: Move Unix-specific code out of Support/ThreadLocal.cpp | David Majnemer | 2014-12-15 | 1 | -0/+43 |
| | | | | | | Just a cleanup, no functionality change is intended. llvm-svn: 224227 | ||||
* | ThreadLocal: Return a mutable pointer if templated with a non-const type | David Majnemer | 2014-12-15 | 1 | -1/+1 |
| | | | | | | | 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 | ||||
* | Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205) | Hans Wennborg | 2013-12-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | According to the docs, ThreadLocal<>::get() should return NULL if no object has been set. This patch makes that the case also for non-thread builds and adds a very basic unit test to check it. (This was causing PR18205 because PrettyStackTraceHead didn't get zero- initialized and we'd crash trying to read past the end of that list. We didn't notice this so much on Linux since we'd crash after printing all the entries, but on Mac we print into a SmallString, and would crash before printing that.) llvm-svn: 197718 | ||||
* | Now to chant the magical incantation that will exorcise the System library | Charles Davis | 2010-11-29 | 1 | -1/+1 |
| | | | | | | | | from LLVM forever: grep -lR "llvm/System" * | grep -v .svn | xargs sed -ie 's#llvm/System#llvm/Support#g' llvm-svn: 120314 | ||||
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 1 | -0/+26 |
llvm-svn: 120298 |