uselistorder: Pull the bit through WriteToBitcodFile()

Change the callers of `WriteToBitcodeFile()` to pass `true` or
`shouldPreserveBitcodeUseListOrder()` explicitly.  I left the callers
that want to send `false` alone.

I'll keep pushing the bit higher until hopefully I can delete the global
`cl::opt` entirely.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2015-04-15 00:10:50 +00:00
parent d01ee74ffa
commit 657aad675a
9 changed files with 31 additions and 23 deletions

View File

@@ -215,7 +215,8 @@ bool LTOCodeGenerator::writeMergedModules(const char *path,
}
// write bitcode to it
WriteBitcodeToFile(IRLinker.getModule(), Out.os());
WriteBitcodeToFile(IRLinker.getModule(), Out.os(),
shouldPreserveBitcodeUseListOrder());
Out.os().close();
if (Out.os().has_error()) {