[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Jul 8 20:28:01 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.51 -> 1.52
---
Log message:
Simplify compilation logic.
---
Diffs of the changes: (+6 -12)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.51 llvm-java/lib/Compiler/Compiler.cpp:1.52
--- llvm-java/lib/Compiler/Compiler.cpp:1.51 Thu Jul 8 19:17:28 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Thu Jul 8 20:26:48 2004
@@ -269,19 +269,13 @@
const ClassFile& cf,
const Method& method) {
compileMethodOnly(module, cf, method);
- bool done;
- do {
- done = true;
- for (unsigned i = 0; i != toCompileFunctions_.size(); ++i) {
- Function* f = toCompileFunctions_[i];
- if (f->isExternal()) {
- done = false;
- compileMethod(module, f->getName());
- }
- }
- } while (!done);
- }
+ for (unsigned i = 0; i != toCompileFunctions_.size(); ++i) {
+ Function* f = toCompileFunctions_[i];
+ compileMethod(module, f->getName());
+ }
+ }
+=
void compileMethod(Module& module, const std::string& classMethodDesc) {
unsigned slash = classMethodDesc.find('/');
std::string className = classMethodDesc.substr(0, slash);
More information about the llvm-commits
mailing list