diff options
author | Lang Hames <lhames@gmail.com> | 2009-11-07 05:50:28 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-11-07 05:50:28 +0000 |
commit | d6ef7fac1a020c58ec61cad2325e5f6afd0bbee6 (patch) | |
tree | 8c4a4fb58d059765e757dc124e481e53ad8956ce /lib/CodeGen | |
parent | bdea34807aadf7a27ebaf1b7c5b7c199afda3e91 (diff) |
Update some globals to use ManagedStatic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SlotIndexes.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/SlotIndexes.cpp b/lib/CodeGen/SlotIndexes.cpp index bf66367865..d99d120509 100644 --- a/lib/CodeGen/SlotIndexes.cpp +++ b/lib/CodeGen/SlotIndexes.cpp @@ -16,8 +16,10 @@ using namespace llvm; -std::auto_ptr<IndexListEntry> IndexListEntry::emptyKeyEntry, - IndexListEntry::tombstoneKeyEntry; + +// Yep - these are thread safe. See the header for details. +ManagedStatic<EmptyIndexListEntry> IndexListEntry::emptyKeyEntry; +ManagedStatic<TombstoneIndexListEntry> IndexListEntry::tombstoneKeyEntry; char SlotIndexes::ID = 0; static RegisterPass<SlotIndexes> X("slotindexes", "Slot index numbering"); |