diff options
| author | Filip Pizlo <fpizlo@apple.com> | 2013-09-13 22:59:47 +0000 |
|---|---|---|
| committer | Filip Pizlo <fpizlo@apple.com> | 2013-09-13 22:59:47 +0000 |
| commit | 67d97093416a2f78ffe17cf7aff39bd0c50a3f8b (patch) | |
| tree | 3054e1b00d00ac0c0918938eb67cbfa3efe8fa96 /llvm/lib/Bitcode/Reader/BitcodeReader.h | |
| parent | 138c32b402e0f384fb6c72d101cfbcf7bcc5a0f9 (diff) | |
| download | llvm-67d97093416a2f78ffe17cf7aff39bd0c50a3f8b.zip llvm-67d97093416a2f78ffe17cf7aff39bd0c50a3f8b.tar.gz llvm-67d97093416a2f78ffe17cf7aff39bd0c50a3f8b.tar.bz2 | |
Make PrettyStackTraceEntry use ManagedStatic for its ThreadLocal.
This was somewhat tricky because ~PrettyStackTraceEntry() may run after
llvm_shutdown() has been called. This is rare and only happens for a common idiom
used in the main() functions of command-line tools. This works around the idiom by
skipping the stack clean-up if the PrettyStackTraceHead ManagedStatic is not
constructed (i.e. llvm_shutdown() has been called).
llvm-svn: 190730
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions
