SBBlock.cpp revision 33ed170599d41fe407a4dcf5f0875c75e1ad1375
1//===-- SBBlock.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/API/SBBlock.h"
11#include "lldb/Symbol/Block.h"
12
13using namespace lldb;
14
15
16SBBlock::SBBlock () :
17    m_opaque_ptr (NULL)
18{
19}
20
21SBBlock::SBBlock (lldb_private::Block *lldb_object_ptr) :
22    m_opaque_ptr (lldb_object_ptr)
23{
24}
25
26SBBlock::~SBBlock ()
27{
28    m_opaque_ptr = NULL;
29}
30
31bool
32SBBlock::IsValid () const
33{
34    return m_opaque_ptr != NULL;
35}
36
37void
38SBBlock::AppendVariables (bool can_create, bool get_parent_variables, lldb_private::VariableList *var_list)
39{
40    if (IsValid())
41    {
42        bool show_inline = true;
43        m_opaque_ptr->AppendVariables (can_create, get_parent_variables, show_inline, var_list);
44    }
45}
46
47
48
49