[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Mon Feb 7 18:26:44 PST 2005
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.217 -> 1.218
---
Log message:
Remove the hack from compiler that adds stub returns to undefined
functions. Use a pass instead to add stubs after we link a module with
the runtime.
---
Diffs of the changes: (+0 -12)
Compiler.cpp | 12 ------------
1 files changed, 12 deletions(-)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.217 llvm-java/lib/Compiler/Compiler.cpp:1.218
--- llvm-java/lib/Compiler/Compiler.cpp:1.217 Fri Feb 4 14:56:51 2005
+++ llvm-java/lib/Compiler/Compiler.cpp Mon Feb 7 20:26:32 2005
@@ -2400,17 +2400,5 @@
bb);
new ReturnInst(NULL, bb);
- // HACK: add dummy returns to functions so that the jit can run the
- // generated bytecode
- for (Module::iterator F = m->begin(), E = m->end(); F != E; ++F)
- if (F->getName().find("<clinit>") != std::string::npos ||
- F->getName().find("java/lang/VMClassLoader") != std::string::npos) {
- BasicBlock* entry = new BasicBlock("entry", F);
- if (F->getReturnType() == Type::VoidTy)
- new ReturnInst(NULL, entry);
- else
- new ReturnInst(UndefValue::get(F->getReturnType()), entry);
- }
-
return m;
}
More information about the llvm-commits
mailing list