[llvm] r208149 - llvm-cov: Handle missing source files as GCOV does

Justin Bogner mail at justinbogner.com
Wed May 7 14:57:07 PDT 2014


"Duncan P. N. Exon Smith" <dexonsmith at apple.com> writes:
> On 2014-May-06, at 19:11, Justin Bogner <mail at justinbogner.com> wrote:
>
>>   void addFunctionLine(StringRef Filename, uint32_t Line,
>>                        const GCOVFunction *Function) {
>> -    LineInfo[Filename].Functions[Line-1].push_back(Function);
>> +    if (Line > LineInfo[Filename].LastLine)
>> +      LineInfo[Filename].LastLine = Line;
>> +   LineInfo[Filename].Functions[Line-1].push_back(Function);
>>   }
>
> Funny indentation here.

Oops. r208253.



More information about the llvm-commits mailing list