[cfe-commits] r173410 - /cfe/trunk/lib/Frontend/CompilerInvocation.cpp

Daniel Dunbar daniel at zuster.org
Fri Jan 25 10:09:23 PST 2013


Done in r173464.

 - Daniel


On Thu, Jan 24, 2013 at 6:05 PM, Chandler Carruth <chandlerc at google.com>wrote:

> Can you craft a test case at least so we don't regress?
>
>
> On Thu, Jan 24, 2013 at 5:50 PM, Daniel Dunbar <daniel at zuster.org> wrote:
>
>> Author: ddunbar
>> Date: Thu Jan 24 19:50:34 2013
>> New Revision: 173410
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=173410&view=rev
>> Log:
>> [Frontend] The -iwithprefix option belongs in the After category,
>> according to
>> GCC docs.
>>  - Found by inspection.
>>
>> Modified:
>>     cfe/trunk/lib/Frontend/CompilerInvocation.cpp
>>
>> Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=173410&r1=173409&r2=173410&view=diff
>>
>> ==============================================================================
>> --- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
>> +++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Thu Jan 24 19:50:34 2013
>> @@ -835,7 +835,7 @@
>>      IsIndexHeaderMap = false;
>>    }
>>
>> -  // Add -iprefix/-iwith-prefix/-iwithprefixbefore options.
>> +  // Add -iprefix/-iwithprefix/-iwithprefixbefore options.
>>    StringRef Prefix = ""; // FIXME: This isn't the correct default prefix.
>>    for (arg_iterator it = Args.filtered_begin(OPT_iprefix,
>> OPT_iwithprefix,
>>                                               OPT_iwithprefixbefore),
>> @@ -845,7 +845,7 @@
>>        Prefix = A->getValue();
>>      else if (A->getOption().matches(OPT_iwithprefix))
>>        Opts.AddPath(Prefix.str() + A->getValue(),
>> -                   frontend::System, false, false, false);
>> +                   frontend::After, false, false, false);
>>      else
>>        Opts.AddPath(Prefix.str() + A->getValue(),
>>                     frontend::Angled, false, false, false);
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130125/ad0b9836/attachment.html>


More information about the cfe-commits mailing list