1 //===-- SBCompileUnit.h -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBCompileUnit_h_
11 #define LLDB_SBCompileUnit_h_
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBFileSpec.h"
24 SBCompileUnit (const lldb::SBCompileUnit &rhs);
28 const lldb::SBCompileUnit &
29 operator = (const lldb::SBCompileUnit &rhs);
38 GetNumLineEntries () const;
41 GetLineEntryAtIndex (uint32_t idx) const;
44 FindLineEntryIndex (uint32_t start_idx,
46 lldb::SBFileSpec *inline_file_spec) const;
49 FindLineEntryIndex (uint32_t start_idx,
51 lldb::SBFileSpec *inline_file_spec,
55 GetSupportFileAtIndex (uint32_t idx) const;
58 GetNumSupportFiles () const;
61 FindSupportFileIndex (uint32_t start_idx, const SBFileSpec &sb_file, bool full);
63 //------------------------------------------------------------------
64 /// Get all types matching \a type_mask from debug info in this
67 /// @param[in] type_mask
68 /// A bitfield that consists of one or more bits logically OR'ed
69 /// together from the lldb::TypeClass enumeration. This allows
70 /// you to request only structure types, or only class, struct
71 /// and union types. Passing in lldb::eTypeClassAny will return
72 /// all types found in the debug information for this compile
76 /// A list of types in this compile unit that match \a type_mask
77 //------------------------------------------------------------------
79 GetTypes (uint32_t type_mask = lldb::eTypeClassAny);
82 operator == (const lldb::SBCompileUnit &rhs) const;
85 operator != (const lldb::SBCompileUnit &rhs) const;
88 GetDescription (lldb::SBStream &description);
91 friend class SBAddress;
93 friend class SBSymbolContext;
94 friend class SBModule;
96 SBCompileUnit (lldb_private::CompileUnit *lldb_object_ptr);
98 const lldb_private::CompileUnit *
101 const lldb_private::CompileUnit &
104 lldb_private::CompileUnit *
108 reset (lldb_private::CompileUnit *lldb_object_ptr);
110 lldb_private::CompileUnit *m_opaque_ptr;
116 #endif // LLDB_SBCompileUnit_h_