File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
source/Plugins/TypeSystem/Swift
test/API/functionalities/progress_reporting/swift_progress_reporting Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8829,9 +8829,9 @@ bool SwiftASTContext::GetCompileUnitImportsImpl(
8829
8829
if (cu_imports.size () == 0 )
8830
8830
return true ;
8831
8831
8832
- Progress progress ( " Getting Swift compile unit imports " ,
8833
- compile_unit->GetPrimaryFile ().GetFilename (). GetCString (),
8834
- cu_imports.size ());
8832
+ std::string category = " Importing Swift module dependencies for " ;
8833
+ category += compile_unit->GetPrimaryFile ().GetFilename ();
8834
+ Progress progress (category, " " , cu_imports.size ());
8835
8835
size_t completion = 0 ;
8836
8836
for (const SourceModule &module : cu_imports) {
8837
8837
progress.Increment (++completion, module .path .back ().GetStringRef ().str ());
Original file line number Diff line number Diff line change @@ -38,14 +38,16 @@ def test_swift_progress_report(self):
38
38
"Loading Swift module" ,
39
39
"Importing modules used in expression" ,
40
40
"Setting up Swift reflection" ,
41
- "Getting Swift compile unit imports " ,
41
+ "Importing Swift module dependencies for main.swift " ,
42
42
"Importing Swift modules" ,
43
43
"Importing Swift standard library" ,
44
44
]
45
45
46
46
while len (beacons ):
47
47
event = lldbutil .fetch_next_event (self , self .listener , self .broadcaster )
48
48
ret_args = lldb .SBDebugger .GetProgressFromEvent (event )
49
+ if self .TraceOn ():
50
+ print (ret_args [0 ])
49
51
50
52
for beacon in beacons :
51
53
if beacon in ret_args [0 ]:
You can’t perform that action at this time.
0 commit comments