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.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173066 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2013-01-21 18:28:26 +00:00
Родитель 8222b8951d
Коммит 125eb3e3b6
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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;