[PATCH] D11599: Change some series of AddAllArgs calls to use the most general AddAlllArgs.

Douglas Katzman dougk at google.com
Wed Jul 29 09:00:01 PDT 2015


dougk created this revision.
dougk added reviewers: chandlerc, jyknight.
dougk added subscribers: cfe-commits, bkramer.

In a bunch of places where we had several calls to AddAllArgs, the new overload accepting an ArrayRef can be used.

But there is actually an observable difference: the old way re-ordered the rendered arguments across groups; but within a single group, they appear in-order as originally expressed.
The new behavior preserves original order throughout, and I **assume** that this is generally to be preferred.
It would be strange indeed if the driver was required to alter the order as written (at least not without a comment saying "We need to reorder these...").
Which is to say, I think that being faithful to what the user supplied should not be wrong.

Patch depends on http://reviews.llvm.org/D11597

http://reviews.llvm.org/D11599

Files:
  lib/Driver/Tools.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11599.30914.patch
Type: text/x-patch
Size: 6241 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150729/53b838c6/attachment.bin>


More information about the cfe-commits mailing list