[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Dec 4 17:51:31 PST 2004
Changes in directory llvm/lib/ExecutionEngine/JIT:
JIT.cpp updated: 1.49 -> 1.50
---
Log message:
Fix PR475: http://llvm.cs.uiuc.edu/PR475 .
---
Diffs of the changes: (+4 -0)
Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.49 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.50
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.49 Mon Nov 29 08:11:29 2004
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp Sat Dec 4 19:51:20 2004
@@ -274,6 +274,10 @@
if (void *Addr = getPointerToGlobalIfAvailable(F))
return Addr;
+ // Get a stub if the target supports it
+ if (void *Addr = TJI.emitFunctionStub(F, *MCE))
+ return Addr;
+
// Otherwise, if the target doesn't support it, just codegen the function.
return getPointerToFunction(F);
}
More information about the llvm-commits
mailing list