[llvm-commits] CVS: llvm-java/tools/class2llvm/class2llvm.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Aug 3 05:10:43 PDT 2004
Changes in directory llvm-java/tools/class2llvm:
class2llvm.cpp updated: 1.11 -> 1.12
---
Log message:
When developing a frontend the verifier is your friend :-)
---
Diffs of the changes: (+2 -0)
Index: llvm-java/tools/class2llvm/class2llvm.cpp
diff -u llvm-java/tools/class2llvm/class2llvm.cpp:1.11 llvm-java/tools/class2llvm/class2llvm.cpp:1.12
--- llvm-java/tools/class2llvm/class2llvm.cpp:1.11 Tue Jul 13 18:21:34 2004
+++ llvm-java/tools/class2llvm/class2llvm.cpp Tue Aug 3 07:10:33 2004
@@ -15,6 +15,7 @@
#include <llvm/Java/ClassFile.h>
#include <llvm/Java/Compiler.h>
#include <llvm/PassManager.h>
+#include <llvm/Analysis/Verifier.h>
#include <llvm/Bytecode/WriteBytecodePass.h>
#include <llvm/System/Signals.h>
#include <Support/CommandLine.h>
@@ -40,6 +41,7 @@
compiler.compile(module, InputClass);
PassManager passes;
+ passes.add(createVerifierPass());
passes.add(new WriteBytecodePass(&std::cout));
passes.run(module);
}
More information about the llvm-commits
mailing list