]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/lldb/source/Utility/RefCounter.cpp
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / tools / lldb / source / Utility / RefCounter.cpp
1 //===---------------------RefCounter.cpp ------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "lldb/Utility/RefCounter.h"
11
12 namespace lldb_utility {
13
14 RefCounter::RefCounter(RefCounter::value_type* ctr):
15 m_counter(ctr)
16 {
17     increment(m_counter);
18 }
19
20 RefCounter::~RefCounter()
21 {
22     decrement(m_counter);
23 }
24
25 } // namespace lldb_utility