blob: c3acedd2f056cbe3f6246e099bcf8acfe5f4ad61 [file] [log] [blame]
Enrico Granataede7bdf2011-07-13 00:00:57 +00001//===---------------------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
12namespace lldb_utility {
13
14RefCounter::RefCounter(RefCounter::value_type* ctr):
15m_counter(ctr)
16{
17 increment(m_counter);
18}
19
20RefCounter::~RefCounter()
21{
22 decrement(m_counter);
23}
24
25} // namespace lldb_utility