diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2013-08-23 17:46:38 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2013-08-23 17:46:38 +0000 |
| commit | f034231a6a1fd5d6395206c1651de8cd9402cca3 (patch) | |
| tree | f561dabc721ad515599172c16da3a4400b7f4aec /source/Utility/RefCounter.cpp | |
Import lldb as of SVN r188801
(A number of files not required for the FreeBSD build have been removed.)
Sponsored by: DARPA, AFRL
Notes
svn path=/vendor/lldb/dist/; revision=254721
Diffstat (limited to 'source/Utility/RefCounter.cpp')
| -rw-r--r-- | source/Utility/RefCounter.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source/Utility/RefCounter.cpp b/source/Utility/RefCounter.cpp new file mode 100644 index 000000000000..c3acedd2f056 --- /dev/null +++ b/source/Utility/RefCounter.cpp @@ -0,0 +1,25 @@ +//===---------------------RefCounter.cpp ------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "lldb/Utility/RefCounter.h" + +namespace lldb_utility { + +RefCounter::RefCounter(RefCounter::value_type* ctr): +m_counter(ctr) +{ + increment(m_counter); +} + +RefCounter::~RefCounter() +{ + decrement(m_counter); +} + +} // namespace lldb_utility |
