]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/llvm/tools/lldb/source/Utility/RefCounter.cpp
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.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