[cfe-commits] r73822 - in /cfe/trunk/lib/Frontend: PCHReaderDecl.cpp PCHWriterDecl.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Sun Jun 21 15:41:48 PDT 2009


Daniel Dunbar wrote:
> I haven't looked at the PCH implementation at all, but isn't this the
> sort of thing that requires a bump in the PCH version number?
>
>  - Daniel
>   

I asked Doug the same thing and his response was that we'll bump the 
version in-between official releases but not for intermediate steps.

-Argiris

> On Sat, Jun 20, 2009 at 1:09 AM, Argiris Kirtzidis<akyrtzi at gmail.com> wrote:
>   
>> Author: akirtzidis
>> Date: Sat Jun 20 03:09:34 2009
>> New Revision: 73822
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=73822&view=rev
>> Log:
>> Serialize FunctionDecl's EndRangeLoc out to the PCH file.
>>
>> Modified:
>>    cfe/trunk/lib/Frontend/PCHReaderDecl.cpp
>>    cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
>>
>> Modified: cfe/trunk/lib/Frontend/PCHReaderDecl.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHReaderDecl.cpp?rev=73822&r1=73821&r2=73822&view=diff
>>
>> ==============================================================================
>> --- cfe/trunk/lib/Frontend/PCHReaderDecl.cpp (original)
>> +++ cfe/trunk/lib/Frontend/PCHReaderDecl.cpp Sat Jun 20 03:09:34 2009
>> @@ -157,6 +157,7 @@
>>   FD->setHasWrittenPrototype(Record[Idx++]);
>>   FD->setDeleted(Record[Idx++]);
>>   FD->setTypeSpecStartLoc(SourceLocation::getFromRawEncoding(Record[Idx++]));
>> +  FD->setLocEnd(SourceLocation::getFromRawEncoding(Record[Idx++]));
>>   // FIXME: C++ TemplateOrInstantiation
>>   unsigned NumParams = Record[Idx++];
>>   llvm::SmallVector<ParmVarDecl *, 16> Params;
>>
>> Modified: cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterDecl.cpp?rev=73822&r1=73821&r2=73822&view=diff
>>
>> ==============================================================================
>> --- cfe/trunk/lib/Frontend/PCHWriterDecl.cpp (original)
>> +++ cfe/trunk/lib/Frontend/PCHWriterDecl.cpp Sat Jun 20 03:09:34 2009
>> @@ -157,6 +157,7 @@
>>   Record.push_back(D->hasWrittenPrototype());
>>   Record.push_back(D->isDeleted());
>>   Writer.AddSourceLocation(D->getTypeSpecStartLoc(), Record);
>> +  Writer.AddSourceLocation(D->getLocEnd(), Record);
>>   // FIXME: C++ TemplateOrInstantiation
>>   Record.push_back(D->param_size());
>>   for (FunctionDecl::param_iterator P = D->param_begin(), PEnd = D->param_end();
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>>     
>
>   



More information about the cfe-commits mailing list