Make DWARFExpression::GetLocationExpression public

This method is used to get the DataExtractor when the expression is a location list.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D86090
This commit is contained in:
Eric Leese 2020-08-20 14:13:21 -07:00 committed by Derek Schuff
parent ed17b6f630
commit 4e266eaf13
1 changed files with 4 additions and 4 deletions

View File

@ -219,6 +219,10 @@ public:
bool MatchesOperand(StackFrame &frame, const Instruction::Operand &op);
llvm::Optional<DataExtractor>
GetLocationExpression(lldb::addr_t load_function_start,
lldb::addr_t addr) const;
private:
/// Pretty-prints the location expression to a stream
///
@ -237,10 +241,6 @@ private:
void DumpLocation(Stream *s, const DataExtractor &data,
lldb::DescriptionLevel level, ABI *abi) const;
llvm::Optional<DataExtractor>
GetLocationExpression(lldb::addr_t load_function_start,
lldb::addr_t addr) const;
/// Module which defined this expression.
lldb::ModuleWP m_module_wp;