@@ -1717,20 +1717,20 @@ bool SwiftLanguage::IsUninitializedReference(ValueObject &valobj) {
1717
1717
}
1718
1718
1719
1719
bool SwiftLanguage::GetFunctionDisplayName (
1720
- const SymbolContext * sc, const ExecutionContext *exe_ctx,
1720
+ const SymbolContext & sc, const ExecutionContext *exe_ctx,
1721
1721
FunctionNameRepresentation representation, Stream &s) {
1722
1722
switch (representation) {
1723
1723
case Language::FunctionNameRepresentation::eName:
1724
1724
// No need to customize this.
1725
1725
return false ;
1726
1726
case Language::FunctionNameRepresentation::eNameWithNoArgs: {
1727
- if (!sc-> function )
1727
+ if (!sc. function )
1728
1728
return false ;
1729
- if (sc-> function ->GetLanguage () != eLanguageTypeSwift)
1729
+ if (sc. function ->GetLanguage () != eLanguageTypeSwift)
1730
1730
return false ;
1731
1731
std::string display_name = SwiftLanguageRuntime::DemangleSymbolAsString (
1732
- sc-> function ->GetMangled ().GetMangledName ().GetStringRef (),
1733
- SwiftLanguageRuntime::eSimplified, sc, exe_ctx);
1732
+ sc. function ->GetMangled ().GetMangledName ().GetStringRef (),
1733
+ SwiftLanguageRuntime::eSimplified, & sc, exe_ctx);
1734
1734
if (display_name.empty ())
1735
1735
return false ;
1736
1736
s << display_name;
@@ -1744,20 +1744,20 @@ bool SwiftLanguage::GetFunctionDisplayName(
1744
1744
const InlineFunctionInfo *inline_info = NULL ;
1745
1745
VariableListSP variable_list_sp;
1746
1746
bool get_function_vars = true ;
1747
- if (sc-> block ) {
1748
- Block *inline_block = sc-> block ->GetContainingInlinedBlock ();
1747
+ if (sc. block ) {
1748
+ Block *inline_block = sc. block ->GetContainingInlinedBlock ();
1749
1749
1750
1750
if (inline_block) {
1751
1751
get_function_vars = false ;
1752
- inline_info = sc-> block ->GetInlinedFunctionInfo ();
1752
+ inline_info = sc. block ->GetInlinedFunctionInfo ();
1753
1753
if (inline_info)
1754
1754
variable_list_sp = inline_block->GetBlockVariableList (true );
1755
1755
}
1756
1756
}
1757
1757
1758
1758
if (get_function_vars) {
1759
1759
variable_list_sp =
1760
- sc-> function ->GetBlock (true ).GetBlockVariableList (true );
1760
+ sc. function ->GetBlock (true ).GetBlockVariableList (true );
1761
1761
}
1762
1762
1763
1763
VariableList args;
0 commit comments