This is an archive of the discontinued LLVM Phabricator instance.

Always append a job # to a --save-temps file if there are more than one task.
Needs ReviewPublic

Authored by ruiu on May 8 2018, 11:04 AM.

Details

Reviewers
pcc
espindola
Summary

It is a bit nitpicking, but I think the new naming scheme is what the
people would expect. For example, if we have three tasks,

foo0.lto.o
foo1.lto.o
foo2.lto.o

is more natural than

foo.lto.o
foo1.lto.o
foo2.lto.o

(But do we need this logic in the first place? I thought that we could
just always append a job number even when there's only one job.)

Event Timeline

ruiu created this revision.May 8 2018, 11:04 AM
pcc added a comment.May 8 2018, 11:24 AM

Seems reasonable to always append the number, I think we do the same thing for the other full-LTO temporaries (see http://llvm-cs.pcc.me.uk/lib/LTO/LTOBackend.cpp#81).