Chris Lattner | 24943d2 | 2010-06-08 16:52:24 +0000 | [diff] [blame^] | 1 | //===-- SBFunction.h --------------------------------------------*- 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 | #ifndef LLDB_SBFunction_h_ |
| 11 | #define LLDB_SBFunction_h_ |
| 12 | |
| 13 | #include <LLDB/SBDefines.h> |
| 14 | |
| 15 | namespace lldb { |
| 16 | |
| 17 | class SBFunction |
| 18 | { |
| 19 | public: |
| 20 | |
| 21 | SBFunction (); |
| 22 | |
| 23 | ~SBFunction (); |
| 24 | |
| 25 | bool |
| 26 | IsValid () const; |
| 27 | |
| 28 | const char * |
| 29 | GetName() const; |
| 30 | |
| 31 | const char * |
| 32 | GetMangledName () const; |
| 33 | |
| 34 | #ifndef SWIG |
| 35 | bool |
| 36 | operator == (const lldb::SBFunction &rhs) const; |
| 37 | |
| 38 | bool |
| 39 | operator != (const lldb::SBFunction &rhs) const; |
| 40 | #endif |
| 41 | |
| 42 | private: |
| 43 | friend class SBFrame; |
| 44 | friend class SBSymbolContext; |
| 45 | |
| 46 | SBFunction (lldb_private::Function *lldb_object_ptr); |
| 47 | |
| 48 | |
| 49 | lldb_private::Function *m_lldb_object_ptr; |
| 50 | }; |
| 51 | |
| 52 | |
| 53 | } // namespace lldb |
| 54 | |
| 55 | #endif // LLDB_SBFunction_h_ |