Skip to content

Commit feab006

Browse files
Merge pull request #1960 from adrian-prantl/access
Add accessors. (NFC)
2 parents 678c6a1 + 8642e64 commit feab006

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lldb/include/lldb/Symbol/Type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class SymbolFileType : public std::enable_shared_from_this<SymbolFileType>,
5656
Type *operator->() { return GetType(); }
5757

5858
Type *GetType();
59+
SymbolFile &GetSymbolFile() const { return m_symbol_file; }
5960

6061
protected:
6162
SymbolFile &m_symbol_file;

lldb/include/lldb/Symbol/Variable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ class Variable : public UserID, public std::enable_shared_from_this<Variable> {
6565

6666
lldb::ValueType GetScope() const { return m_scope; }
6767

68+
const RangeList &GetScopeRange() const { return m_scope_range; }
69+
6870
bool IsExternal() const { return m_external; }
6971

7072
bool IsArtificial() const { return m_artificial; }

0 commit comments

Comments
 (0)