Use atomic operations when accessing statistics, and make the lazy initialization...
authorOwen Anderson <resistor@mac.com>
Tue, 23 Jun 2009 21:19:38 +0000 (21:19 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 23 Jun 2009 21:19:38 +0000 (21:19 +0000)
commit92915e31e988c1b89a07c035029dc2f289afb789
treeb2e33caf6d5eb3da25d4936e8de590164b1fb94f
parente0fa0b42b2b5e95c81ceff19401c7bb2152dd22a
Use atomic operations when accessing statistics, and make the lazy initialization of statistics actually threadsafe.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74005 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Statistic.h
lib/Support/Statistic.cpp