[cfe-commits] r173066 - /cfe/trunk/lib/Serialization/ASTReader.cpp

Chris Lattner sabre at nondot.org
Mon Jan 21 10:28:26 PST 2013


Author: lattner
Date: Mon Jan 21 12:28:26 2013
New Revision: 173066

URL: http://llvm.org/viewvc/llvm-project?rev=173066&view=rev
Log:
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.


Modified:
    cfe/trunk/lib/Serialization/ASTReader.cpp

Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=173066&r1=173065&r2=173066&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Mon Jan 21 12:28:26 2013
@@ -810,7 +810,8 @@
     
     // 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;
 





More information about the cfe-commits mailing list