SBInstruction.cpp revision 63094e0bb161580564954dee512955c1c79d3476
1//===-- SBInstruction.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/SBInstruction.h"
11
12#include "lldb/Core/Disassembler.h"
13
14using namespace lldb;
15using namespace lldb_private;
16
17//SBInstruction::SBInstruction (lldb_private::Disassembler::Instruction *lldb_insn) :
18//    m_opaque_sp (lldb_insn);
19//{
20//}
21
22SBInstruction::SBInstruction ()
23{
24}
25
26SBInstruction::~SBInstruction ()
27{
28}
29
30//bool
31//SBInstruction::IsValid()
32//{
33//    return (m_opaque_sp.get() != NULL);
34//}
35
36//size_t
37//SBInstruction::GetByteSize ()
38//{
39//    if (IsValid())
40//    {
41//        return m_opaque_sp->GetByteSize();
42//    }
43//    return 0;
44//}
45
46//void
47//SBInstruction::SetByteSize (size_T byte_size)
48//{
49//    if (IsValid ())
50//    {
51//        m_opaque_sp->SetByteSize (byte_size);
52//    }
53//}
54
55//bool
56//SBInstruction::DoesBranch ()
57//{
58//    if (IsValid ())
59//    {
60//        return m_opaque_sp->DoesBranch ();
61//    }
62//    return false;
63//}
64
65void
66SBInstruction::Print (FILE *out)
67{
68    if (out == NULL)
69        return;
70
71    //StreamFile out_strem (out);
72
73    //m_opaque_sp->Dump (out, LLDB_INVALID_ADDRESS, NULL, 0);
74}
75