ReadSourceManagerBlock is skipping over records that can contain Blobs. Not passing

in a StringRef to bind to them forces them to be unpacked into the Record as individual
bytes.  This is wasteful, but not likely to be measurable in this instance.

llvm-svn: 173066
This commit is contained in:
Chris Lattner 2013-01-21 18:28:26 +00:00
parent 1aeca1e806
commit 15c3e7dab5
1 changed files with 2 additions and 1 deletions

View File

@ -810,7 +810,8 @@ bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) {
// Read a record.
Record.clear();
switch (SLocEntryCursor.readRecord(E.ID, Record)) {
StringRef Blob;
switch (SLocEntryCursor.readRecord(E.ID, Record, &Blob)) {
default: // Default behavior: ignore.
break;