@@ -1699,54 +1699,54 @@ bool SwiftLanguage::IsUninitializedReference(ValueObject &valobj) {
1699
1699
}
1700
1700
1701
1701
bool SwiftLanguage::GetFunctionDisplayName (
1702
- const SymbolContext * sc, const ExecutionContext *exe_ctx,
1702
+ const SymbolContext & sc, const ExecutionContext *exe_ctx,
1703
1703
FunctionNameRepresentation representation, Stream &s) {
1704
1704
switch (representation) {
1705
1705
case Language::FunctionNameRepresentation::eName:
1706
1706
// No need to customize this.
1707
1707
return false ;
1708
1708
case Language::FunctionNameRepresentation::eNameWithNoArgs: {
1709
- if (!sc-> function )
1709
+ if (!sc. function )
1710
1710
return false ;
1711
- if (sc-> function ->GetLanguage () != eLanguageTypeSwift)
1711
+ if (sc. function ->GetLanguage () != eLanguageTypeSwift)
1712
1712
return false ;
1713
1713
std::string display_name = SwiftLanguageRuntime::DemangleSymbolAsString (
1714
- sc-> function ->GetMangled ().GetMangledName ().GetStringRef (),
1715
- SwiftLanguageRuntime::eSimplified, sc, exe_ctx);
1714
+ sc. function ->GetMangled ().GetMangledName ().GetStringRef (),
1715
+ SwiftLanguageRuntime::eSimplified, & sc, exe_ctx);
1716
1716
if (display_name.empty ())
1717
1717
return false ;
1718
1718
s << display_name;
1719
1719
return true ;
1720
1720
}
1721
1721
case Language::FunctionNameRepresentation::eNameWithArgs: {
1722
- if (!sc-> function )
1722
+ if (!sc. function )
1723
1723
return false ;
1724
- if (sc-> function ->GetLanguage () != eLanguageTypeSwift)
1724
+ if (sc. function ->GetLanguage () != eLanguageTypeSwift)
1725
1725
return false ;
1726
1726
std::string display_name = SwiftLanguageRuntime::DemangleSymbolAsString (
1727
- sc-> function ->GetMangled ().GetMangledName ().GetStringRef (),
1728
- SwiftLanguageRuntime::eSimplified, sc, exe_ctx);
1727
+ sc. function ->GetMangled ().GetMangledName ().GetStringRef (),
1728
+ SwiftLanguageRuntime::eSimplified, & sc, exe_ctx);
1729
1729
if (display_name.empty ())
1730
1730
return false ;
1731
1731
ExecutionContextScope *exe_scope =
1732
1732
exe_ctx ? exe_ctx->GetBestExecutionContextScope () : NULL ;
1733
1733
const InlineFunctionInfo *inline_info = NULL ;
1734
1734
VariableListSP variable_list_sp;
1735
1735
bool get_function_vars = true ;
1736
- if (sc-> block ) {
1737
- Block *inline_block = sc-> block ->GetContainingInlinedBlock ();
1736
+ if (sc. block ) {
1737
+ Block *inline_block = sc. block ->GetContainingInlinedBlock ();
1738
1738
1739
1739
if (inline_block) {
1740
1740
get_function_vars = false ;
1741
- inline_info = sc-> block ->GetInlinedFunctionInfo ();
1741
+ inline_info = sc. block ->GetInlinedFunctionInfo ();
1742
1742
if (inline_info)
1743
1743
variable_list_sp = inline_block->GetBlockVariableList (true );
1744
1744
}
1745
1745
}
1746
1746
1747
1747
if (get_function_vars) {
1748
1748
variable_list_sp =
1749
- sc-> function ->GetBlock (true ).GetBlockVariableList (true );
1749
+ sc. function ->GetBlock (true ).GetBlockVariableList (true );
1750
1750
}
1751
1751
1752
1752
if (inline_info) {
0 commit comments