mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Make sure to verify the result before writing out the bytecode file. Not doing
so can cause obscure errors downstream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -125,6 +125,9 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) {
|
||||
addPass(Passes, createGlobalDCEPass());
|
||||
}
|
||||
|
||||
// Make sure everything is still good.
|
||||
Passes.add(createVerifierPass());
|
||||
|
||||
// Add the pass that writes bytecode to the output file...
|
||||
addPass(Passes, new WriteBytecodePass(Out));
|
||||
|
||||
|
Reference in New Issue
Block a user