[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Dec 5 01:10:14 PST 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.161 -> 1.162
---
Log message:
Add libjrt to the module generated by class2llvm.
---
Diffs of the changes: (+2 -0)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.161 llvm-java/lib/Compiler/Compiler.cpp:1.162
--- llvm-java/lib/Compiler/Compiler.cpp:1.161 Sat Dec 4 22:14:28 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Sun Dec 5 03:10:02 2004
@@ -2380,6 +2380,8 @@
DEBUG(std::cerr << "Compiling class: " << className << '\n');
std::auto_ptr<Module> m(new Module(className));
+ // Require the Java runtime.
+ m->addLibrary("jrt");
Compiler c(*m);
Function* main = c.compileMethod(className + "/main([Ljava/lang/String;)V");
More information about the llvm-commits
mailing list