[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Jul 8 19:08:04 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.49 -> 1.50
---
Log message:
Change Compiler interface so that only the classname of the class with
the main() method is required.
---
Diffs of the changes: (+1 -2)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.49 llvm-java/lib/Compiler/Compiler.cpp:1.50
--- llvm-java/lib/Compiler/Compiler.cpp:1.49 Thu Jul 8 19:03:36 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Thu Jul 8 19:06:30 2004
@@ -752,9 +752,8 @@
delete compilerImpl_;
}
-void Compiler::compile(Module& m, const ClassFile& cf)
+void Compiler::compile(Module& m, const std::string& className)
{
- const std::string className = cf.getThisClass()->getName()->str();
DEBUG(std::cerr << "Compiling class: " << className << '\n');
compilerImpl_->compileMethod(m, className + "/main([Ljava/lang/String;)I");
More information about the llvm-commits
mailing list