mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-14 15:25:25 +00:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user