1 //===-- SBFunction.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_SBFunction_h_
11 #define LLDB_SBFunction_h_
13 #include "lldb/API/SBAddress.h"
14 #include "lldb/API/SBDefines.h"
15 #include "lldb/API/SBInstructionList.h"
19 class LLDB_API SBFunction {
23 SBFunction(const lldb::SBFunction &rhs);
25 const lldb::SBFunction &operator=(const lldb::SBFunction &rhs);
31 const char *GetName() const;
33 const char *GetDisplayName() const;
35 const char *GetMangledName() const;
37 lldb::SBInstructionList GetInstructions(lldb::SBTarget target);
39 lldb::SBInstructionList GetInstructions(lldb::SBTarget target,
42 lldb::SBAddress GetStartAddress();
44 lldb::SBAddress GetEndAddress();
46 const char *GetArgumentName(uint32_t arg_idx);
48 uint32_t GetPrologueByteSize();
50 lldb::SBType GetType();
52 lldb::SBBlock GetBlock();
54 lldb::LanguageType GetLanguage();
56 bool GetIsOptimized();
58 bool operator==(const lldb::SBFunction &rhs) const;
60 bool operator!=(const lldb::SBFunction &rhs) const;
62 bool GetDescription(lldb::SBStream &description);
65 lldb_private::Function *get();
67 void reset(lldb_private::Function *lldb_object_ptr);
70 friend class SBAddress;
72 friend class SBSymbolContext;
74 SBFunction(lldb_private::Function *lldb_object_ptr);
76 lldb_private::Function *m_opaque_ptr;
81 #endif // LLDB_SBFunction_h_