Pull EmitRecord() out of loop. It should be called only once.

llvm-svn: 72252
This commit is contained in:
Zhongxing Xu 2009-05-22 08:38:27 +00:00
parent 5b34933b90
commit 5a187dd21e
1 changed files with 1 additions and 1 deletions

View File

@ -758,8 +758,8 @@ void PCHWriter::WriteSourceManagerBlock(SourceManager &SourceMgr,
Record.push_back((unsigned)LE->FileKind);
Record.push_back(LE->IncludeOffset);
}
Stream.EmitRecord(pch::SM_LINE_TABLE, Record);
}
Stream.EmitRecord(pch::SM_LINE_TABLE, Record);
}
// Write out entries for all of the header files we know about.