[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jan 13 21:40:16 PST 2004


Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.16 -> 1.17

---
Log message:

Make sure to verify the result before writing out the bytecode file.  Not doing
so can cause obscure errors downstream.



---
Diffs of the changes:  (+3 -0)

Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.16 llvm/tools/gccld/GenerateCode.cpp:1.17
--- llvm/tools/gccld/GenerateCode.cpp:1.16	Fri Nov 28 03:44:03 2003
+++ llvm/tools/gccld/GenerateCode.cpp	Tue Jan 13 21:39:46 2004
@@ -125,6 +125,9 @@
     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));
 





More information about the llvm-commits mailing list