[llvm-commits] CVS: llvm-java/tools/class2llvm/class2llvm.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat May 22 18:27:06 PDT 2004
Changes in directory llvm-java/tools/class2llvm:
class2llvm.cpp updated: 1.1 -> 1.2
---
Log message:
Put Java::compile free function in a Java::Compiler object.
---
Diffs of the changes: (+3 -1)
Index: llvm-java/tools/class2llvm/class2llvm.cpp
diff -u llvm-java/tools/class2llvm/class2llvm.cpp:1.1 llvm-java/tools/class2llvm/class2llvm.cpp:1.2
--- llvm-java/tools/class2llvm/class2llvm.cpp:1.1 Sat May 22 02:08:31 2004
+++ llvm-java/tools/class2llvm/class2llvm.cpp Sat May 22 18:25:22 2004
@@ -32,7 +32,9 @@
std::auto_ptr<Java::ClassFile> cf(
Java::ClassFile::readClassFile(std::cin));
- Module* module = Java::compile(*cf);
+ Java::Compiler compiler;
+
+ Module* module = compiler.compile(*cf);
PassManager passes;
passes.add(new PrintModulePass(&std::cout));
More information about the llvm-commits
mailing list