[llvm-commits] [llvm] r59904 - /llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp

Chris Lattner sabre at nondot.org
Sun Nov 23 00:00:11 PST 2008


Author: lattner
Date: Sun Nov 23 02:00:11 2008
New Revision: 59904

URL: http://llvm.org/viewvc/llvm-project?rev=59904&view=rev
Log:
Make JIT::runFunction handle functions with non-C calling conventions.

Modified:
    llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp

Modified: llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp?rev=59904&r1=59903&r2=59904&view=diff

==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JIT.cpp Sun Nov 23 02:00:11 2008
@@ -446,6 +446,7 @@
 
   CallInst *TheCall = CallInst::Create(F, Args.begin(), Args.end(),
                                        "", StubBB);
+  TheCall->setCallingConv(F->getCallingConv());
   TheCall->setTailCall();
   if (TheCall->getType() != Type::VoidTy)
     ReturnInst::Create(TheCall, StubBB);    // Return result of the call.





More information about the llvm-commits mailing list