summaryrefslogtreecommitdiff
path: root/include/lldb/Symbol
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-09-06 14:32:30 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-09-06 14:32:30 +0000
commit027f1c9655391dcb2b0117f931f720211ac933db (patch)
tree94980f450aa3daec3e1fec217374704ad62cfe45 /include/lldb/Symbol
parent5e95aa85bb660d45e9905ef1d7180b2678280660 (diff)
Notes
Diffstat (limited to 'include/lldb/Symbol')
-rw-r--r--include/lldb/Symbol/Function.h26
-rw-r--r--include/lldb/Symbol/Symbol.h20
-rw-r--r--include/lldb/Symbol/Variable.h12
3 files changed, 37 insertions, 21 deletions
diff --git a/include/lldb/Symbol/Function.h b/include/lldb/Symbol/Function.h
index 5954cf520d70..30c8f168e5f1 100644
--- a/include/lldb/Symbol/Function.h
+++ b/include/lldb/Symbol/Function.h
@@ -123,7 +123,7 @@ public:
/// @return
/// A const reference to the method name object.
//------------------------------------------------------------------
- const ConstString&
+ ConstString
GetName () const;
//------------------------------------------------------------------
@@ -240,11 +240,14 @@ public:
Dump(Stream *s, bool show_fullpaths) const;
void
- DumpStopContext (Stream *s) const;
+ DumpStopContext (Stream *s, lldb::LanguageType language) const;
- const ConstString &
- GetName () const;
+ ConstString
+ GetName (lldb::LanguageType language) const;
+ ConstString
+ GetDisplayName (lldb::LanguageType language) const;
+
//------------------------------------------------------------------
/// Get accessor for the call site declaration information.
///
@@ -437,6 +440,8 @@ public:
return m_range;
}
+ lldb::LanguageType
+ GetLanguage() const;
//------------------------------------------------------------------
/// Find the file and line number of the source location of the start
/// of the function. This will use the declaration if present and fall
@@ -524,11 +529,14 @@ public:
return m_frame_base;
}
- const ConstString &
- GetName() const
- {
- return m_mangled.GetName();
- }
+ ConstString
+ GetName() const;
+
+ ConstString
+ GetNameNoArguments () const;
+
+ ConstString
+ GetDisplayName () const;
const Mangled &
GetMangled() const
diff --git a/include/lldb/Symbol/Symbol.h b/include/lldb/Symbol/Symbol.h
index ad11563634ea..f9438b006c4e 100644
--- a/include/lldb/Symbol/Symbol.h
+++ b/include/lldb/Symbol/Symbol.h
@@ -152,18 +152,28 @@ public:
lldb::addr_t
ResolveCallableAddress(Target &target) const;
- const ConstString &
- GetName () const
- {
- return m_mangled.GetName();
- }
+ ConstString
+ GetName () const;
+
+ ConstString
+ GetNameNoArguments () const;
+ ConstString
+ GetDisplayName () const;
+
uint32_t
GetID() const
{
return m_uid;
}
+ lldb::LanguageType
+ GetLanguage() const
+ {
+ // TODO: See if there is a way to determine the language for a symbol somehow, for now just return our best guess
+ return m_mangled.GuessLanguage();
+ }
+
void
SetID(uint32_t uid)
{
diff --git a/include/lldb/Symbol/Variable.h b/include/lldb/Symbol/Variable.h
index a345bcb8c23a..8d413cac3d7d 100644
--- a/include/lldb/Symbol/Variable.h
+++ b/include/lldb/Symbol/Variable.h
@@ -55,7 +55,7 @@ public:
return m_declaration;
}
- const ConstString&
+ ConstString
GetName() const;
SymbolContextScope *
@@ -70,12 +70,7 @@ public:
// function that can be called by commands and expression parsers to make
// sure we match anything we come across.
bool
- NameMatches (const ConstString &name) const
- {
- if (m_name == name)
- return true;
- return m_mangled.NameMatches (name);
- }
+ NameMatches (const ConstString &name) const;
bool
NameMatches (const RegularExpression& regex) const;
@@ -83,6 +78,9 @@ public:
Type *
GetType();
+ lldb::LanguageType
+ GetLanguage () const;
+
lldb::ValueType
GetScope() const
{