diff options
author | Chris Lattner <sabre@nondot.org> | 2013-01-20 02:38:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2013-01-20 02:38:54 +0000 |
commit | 0e6c940d2cfc42d1a6e5cd5d1aac0b64b805450a (patch) | |
tree | 6cae7310d1738698390098695217519a11d97059 /clang/lib/Serialization/ASTReaderDecl.cpp | |
parent | 9d0eb9444e65e0a693386ee22ef05a615690a714 (diff) | |
download | bcm5719-llvm-0e6c940d2cfc42d1a6e5cd5d1aac0b64b805450a.tar.gz bcm5719-llvm-0e6c940d2cfc42d1a6e5cd5d1aac0b64b805450a.zip |
update to use the new BitcodeCursor readRecord that takes a StringRef blob parameter,
and adopt "advance" in more places.
llvm-svn: 172951
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReaderDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp index 9f8268adeef..146065866b0 100644 --- a/clang/lib/Serialization/ASTReaderDecl.cpp +++ b/clang/lib/Serialization/ASTReaderDecl.cpp @@ -1937,7 +1937,7 @@ Decl *ASTReader::ReadDeclRecord(DeclID ID) { ASTDeclReader Reader(*this, *Loc.F, ID, RawLocation, Record,Idx); Decl *D = 0; - switch ((DeclCode)DeclsCursor.ReadRecord(Code, Record)) { + switch ((DeclCode)DeclsCursor.readRecord(Code, Record)) { case DECL_CONTEXT_LEXICAL: case DECL_CONTEXT_VISIBLE: llvm_unreachable("Record cannot be de-serialized with ReadDeclRecord"); @@ -2189,7 +2189,7 @@ void ASTReader::loadDeclUpdateRecords(serialization::DeclID ID, Decl *D) { Cursor.JumpToBit(Offset); RecordData Record; unsigned Code = Cursor.ReadCode(); - unsigned RecCode = Cursor.ReadRecord(Code, Record); + unsigned RecCode = Cursor.readRecord(Code, Record); (void)RecCode; assert(RecCode == DECL_UPDATES && "Expected DECL_UPDATES record!"); |