• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
RefCounter(RefCounter::value_type * ctr)14 RefCounter::RefCounter(RefCounter::value_type* ctr):
15 m_counter(ctr)
16 {
17     increment(m_counter);
18 }
19 
~RefCounter()20 RefCounter::~RefCounter()
21 {
22     decrement(m_counter);
23 }
24 
25 } // namespace lldb_utility
26