diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2011-07-13 00:00:57 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2011-07-13 00:00:57 +0000 |
commit | 79dce0a66e112e7b9c412d29702b458d8b75126c (patch) | |
tree | d65b581c875cc362a22a4bf8508a9a348f024404 /lldb/source/Utility | |
parent | 26935e60b6fc2072bca8ab0c6abb3325b4cb6701 (diff) | |
download | bcm5719-llvm-79dce0a66e112e7b9c412d29702b458d8b75126c.tar.gz bcm5719-llvm-79dce0a66e112e7b9c412d29702b458d8b75126c.zip |
fixing missing RefCounter class
llvm-svn: 135012
Diffstat (limited to 'lldb/source/Utility')
-rw-r--r-- | lldb/source/Utility/RefCounter.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lldb/source/Utility/RefCounter.cpp b/lldb/source/Utility/RefCounter.cpp new file mode 100644 index 00000000000..c3acedd2f05 --- /dev/null +++ b/lldb/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 |