diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-10-12 15:01:09 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-10-12 15:01:09 +0000 |
commit | 8d4ba5fd23474b2317396d077db9703bc8878ce3 (patch) | |
tree | 316cc5dd598fd55da53780458c418d16881d36ef /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 2fca7aeb09329409d2a3dba0e72fae4cb6707df6 (diff) | |
download | llvm-8d4ba5fd23474b2317396d077db9703bc8878ce3.zip llvm-8d4ba5fd23474b2317396d077db9703bc8878ce3.tar.gz llvm-8d4ba5fd23474b2317396d077db9703bc8878ce3.tar.bz2 |
[scudo] Allow for non-Android Shared TSD platforms, part 1
Summary:
This first part just prepares the grounds for part 2 and doesn't add any new
functionality. It mostly consists of small refactors:
- move the `pthread.h` include higher as it will be used in the headers;
- use `errno.h` in `scudo_allocator.cpp` instead of the sanitizer one, update
the `errno` assignments accordingly (otherwise it creates conflicts on some
platforms due to `pthread.h` including `errno.h`);
- introduce and use `getCurrentTSD` and `setCurrentTSD` for the shared TSD
model code;
Reviewers: alekseyshl
Reviewed By: alekseyshl
Subscribers: llvm-commits, srhines
Differential Revision: https://reviews.llvm.org/D38826
llvm-svn: 315583
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions