mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Use addPassesToEmitWholeFile() instead of addPassesToEmitFile()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec3bc39413
commit
bdaf3dc8c3
@ -282,7 +282,7 @@ static enum LTOStatus lto_optimize(Module *M, std::ostream &Out,
|
||||
// Make sure everything is still good.
|
||||
Passes.add(createVerifierPass());
|
||||
|
||||
Target.addPassesToEmitFile(Passes, Out, TargetMachine::AssemblyFile, true);
|
||||
Target.addPassesToEmitWholeFile(Passes, Out, TargetMachine::AssemblyFile, true);
|
||||
|
||||
// Run our queue of passes all at once now, efficiently.
|
||||
Passes.run(*M);
|
||||
|
Loading…
Reference in New Issue
Block a user