[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Dec 4 20:12:35 PST 2004



Changes in directory llvm-java/lib/Compiler:

Compiler.cpp updated: 1.159 -> 1.160
---
Log message:

Ignore already compiled methods.


---
Diffs of the changes:  (+4 -1)

Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.159 llvm-java/lib/Compiler/Compiler.cpp:1.160
--- llvm-java/lib/Compiler/Compiler.cpp:1.159	Sat Dec  4 22:10:44 2004
+++ llvm-java/lib/Compiler/Compiler.cpp	Sat Dec  4 22:12:24 2004
@@ -1181,7 +1181,10 @@
       cf_ = method->getParent();
 
       Function* function = getFunction(method);
-      assert(function->empty() && "Compiling an already compiled method!");
+      if (!function->empty()) {
+        DEBUG(std::cerr << "Function: " << function->getName() << " is already compiled!\n");
+        return function;
+      }
 
       if (method->isNative()) {
         DEBUG(std::cerr << "Adding stub for natively implemented method: "






More information about the llvm-commits mailing list