aboutsummaryrefslogtreecommitdiff
path: root/source/Utility/RefCounter.cpp
blob: c3acedd2f056cbe3f6246e099bcf8acfe5f4ad61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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