[llvm-commits] CVS: llvm-java/tools/class2llvm/class2llvm.cpp Makefile
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Jul 13 16:21:44 PDT 2004
Changes in directory llvm-java/tools/class2llvm:
class2llvm.cpp updated: 1.10 -> 1.11
Makefile updated: 1.1 -> 1.2
---
Log message:
Make tool output llvm bytecode instead of writing out assembly.
---
Diffs of the changes: (+3 -3)
Index: llvm-java/tools/class2llvm/class2llvm.cpp
diff -u llvm-java/tools/class2llvm/class2llvm.cpp:1.10 llvm-java/tools/class2llvm/class2llvm.cpp:1.11
--- llvm-java/tools/class2llvm/class2llvm.cpp:1.10 Thu Jul 8 19:06:30 2004
+++ llvm-java/tools/class2llvm/class2llvm.cpp Tue Jul 13 18:21:34 2004
@@ -15,7 +15,7 @@
#include <llvm/Java/ClassFile.h>
#include <llvm/Java/Compiler.h>
#include <llvm/PassManager.h>
-#include <llvm/Assembly/PrintModulePass.h>
+#include <llvm/Bytecode/WriteBytecodePass.h>
#include <llvm/System/Signals.h>
#include <Support/CommandLine.h>
@@ -40,7 +40,7 @@
compiler.compile(module, InputClass);
PassManager passes;
- passes.add(new PrintModulePass(&std::cout));
+ passes.add(new WriteBytecodePass(&std::cout));
passes.run(module);
}
catch (std::exception& e) {
Index: llvm-java/tools/class2llvm/Makefile
diff -u llvm-java/tools/class2llvm/Makefile:1.1 llvm-java/tools/class2llvm/Makefile:1.2
--- llvm-java/tools/class2llvm/Makefile:1.1 Sat May 22 02:08:31 2004
+++ llvm-java/tools/class2llvm/Makefile Tue Jul 13 18:21:34 2004
@@ -11,6 +11,6 @@
TOOLNAME := class2llvm
USEDLIBS := classfile compiler
-LLVMLIBS := support vmcore
+LLVMLIBS := support vmcore bcwriter
include $(LEVEL)/Makefile.common
More information about the llvm-commits
mailing list