Displaying 3 results from an estimated 3 matches for "tyj6zaheis0enhbkdcze".
2014 Apr 07
3
[LLVMdev] Why "I = ++I" instead of "++I" in COFFDump.cpp ?
Oops, meant to send this to the mailing list instead of to Reid
privately. (Why cc the mailing list instead of just sending to the
mailing list?)
In article <CACs=tyJ6zaHeiS0eNhBkdcZE--JY4k7yH9_P1yFbGqod6uymMw at mail.gmail.com>,
Reid Kleckner <rnk at google.com> writes:
> Looks like a bug. This can probably be simplified with C++11.
>
> On Fri, Apr 4, 2014 at 10:39 AM, Robison, Arch <arch.robison at intel.com>wrote:
>
> > for (; I != E...
2014 Apr 04
3
[LLVMdev] Why "I = ++I" instead of "++I" in COFFDump.cpp ?
tools/llvm-objdump/COFFDump.cpp has two loops that advance the loop iterator using "I = ++I" instead of the usual "++I". For example:
import_directory_iterator I = Obj->import_directory_begin();
import_directory_iterator E = Obj->import_directory_end();
if (I == E)
return;
outs() << "The Import Tables:\n";
for (; I != E; I = ++I) {
2014 Apr 08
2
[LLVMdev] Why "I = ++I" instead of "++I" in COFFDump.cpp ?
...de
> wrote:
> On Mon, Apr 07, 2014 at 08:38:58AM -0600, Richard wrote:
> > Oops, meant to send this to the mailing list instead of to Reid
> > privately. (Why cc the mailing list instead of just sending to the
> > mailing list?)
> >
> > In article <CACs=
> tyJ6zaHeiS0eNhBkdcZE--JY4k7yH9_P1yFbGqod6uymMw at mail.gmail.com>,
> > Reid Kleckner <rnk at google.com> writes:
> >
> > > Looks like a bug. This can probably be simplified with C++11.
> > >
> > > On Fri, Apr 4, 2014 at 10:39 AM, Robison, Arch <arch.robison at int...