Skip to content

Commit cf759f6

Browse files
[NFC] Direct printCompileJobCacheKey to correct raw_ostream
Make sure output of printCompileJobCacheKey is sent to the correct raw_ostream, not to llvm::outs() all the time.
1 parent b8e3e4b commit cf759f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Frontend/CompileJobCacheKey.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ llvm::Error swift::printCompileJobCacheKey(llvm::cas::ObjectStore &CAS,
152152
if (Err)
153153
return Err;
154154

155-
llvm::outs() << "Cache Key " << CAS.getID(Key).toString() << "\n";
156-
llvm::outs() << "Swift Compiler Invocation Info:\n";
157-
llvm::outs() << BaseStr;
158-
llvm::outs() << "Input index: " << InputIndex << "\n";
155+
OS << "Cache Key " << CAS.getID(Key).toString() << "\n";
156+
OS << "Swift Compiler Invocation Info:\n";
157+
OS << BaseStr;
158+
OS << "Input index: " << InputIndex << "\n";
159159

160160
return llvm::Error::success();
161161
}

0 commit comments

Comments
 (0)