uselistorder: Pull bit through BitcodeWriterPass

Now the callers of `BitcodeWriterPass` decide whether or not to preserve
bitcode use-list order.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2015-04-15 00:34:24 +00:00
parent bff2c565df
commit e005d71e4b
6 changed files with 34 additions and 14 deletions

View File

@@ -431,7 +431,8 @@ int main(int argc, char **argv) {
// string. Hand off the rest of the functionality to the new code for that
// layer.
return runPassPipeline(argv[0], Context, *M, TM.get(), Out.get(),
PassPipeline, OK, VK)
PassPipeline, OK, VK,
shouldPreserveBitcodeUseListOrder())
? 0
: 1;
}
@@ -594,7 +595,8 @@ int main(int argc, char **argv) {
if (OutputAssembly)
Passes.add(createPrintModulePass(Out->os()));
else
Passes.add(createBitcodeWriterPass(Out->os()));
Passes.add(createBitcodeWriterPass(Out->os(),
shouldPreserveBitcodeUseListOrder()));
}
// Before executing passes, print the final values of the LLVM options.