Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame^] | 1 | //===-- SBCommandContext.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/Interpreter/CommandContext.h" |
| 11 | #include "lldb/Interpreter/CommandReturnObject.h" |
| 12 | |
| 13 | #include "SBCommandContext.h" |
| 14 | |
| 15 | |
| 16 | using namespace lldb; |
| 17 | using namespace lldb_private; |
| 18 | |
| 19 | |
| 20 | SBCommandContext::SBCommandContext (CommandContext *lldb_object) : |
| 21 | m_lldb_object (lldb_object) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | SBCommandContext::~SBCommandContext () |
| 26 | { |
| 27 | } |
| 28 | |
| 29 | bool |
| 30 | SBCommandContext::IsValid () const |
| 31 | { |
| 32 | return m_lldb_object != NULL; |
| 33 | } |
| 34 | |