ruiu added a comment. > Since the order of two files is arbitrary, how about just giving each InputFile a number when it is created ? That's exactly what I was thinking. :) I'll send you guys a patch. https://reviews.llvm.org/D45519