mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
Frontend/-H: Add comment on why I used a temporary string here.
llvm-svn: 113379
This commit is contained in:
@@ -263,6 +263,7 @@ void PrintPPOutputPPCallbacks::FileChanged(SourceLocation Loc,
|
||||
// predefines buffer.
|
||||
if (DumpHeaderIncludes && HasProcessedPredefines &&
|
||||
Reason == PPCallbacks::EnterFile) {
|
||||
// Write to a temporary string to avoid unnecessary flushing on errs().
|
||||
llvm::SmallString<256> Msg;
|
||||
llvm::raw_svector_ostream OS(Msg);
|
||||
for (unsigned i = 0; i != CurrentIncludeDepth; ++i)
|
||||
|
||||
Reference in New Issue
Block a user