[macruby-changes] [4845] MacRuby/trunk/compiler.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 28 18:06:11 PDT 2010


Revision: 4845
          http://trac.macosforge.org/projects/ruby/changeset/4845
Author:   lsansonetti at apple.com
Date:     2010-10-28 18:06:09 -0700 (Thu, 28 Oct 2010)
Log Message:
-----------
fix rb_vm_set_current_mri_method_context() llvm signature

Modified Paths:
--------------
    MacRuby/trunk/compiler.cpp

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2010-10-28 21:53:38 UTC (rev 4844)
+++ MacRuby/trunk/compiler.cpp	2010-10-29 01:06:09 UTC (rev 4845)
@@ -6574,12 +6574,11 @@
 
     // Register the receiver and selector to the VM (for rb_call_super()).
     if (setCurrentMRIMethodContext == NULL) {
-	// void rb_vm_prepare_method(Class klass, unsigned char dynamic_class,
-	//	SEL sel, Function *func, rb_vm_arity_t arity, int flags)
+	// void rb_vm_set_current_mri_method_context(VALUE self, SEL sel)
 	setCurrentMRIMethodContext = 
 	    cast<Function>(module->getOrInsertFunction(
 			"rb_vm_set_current_mri_method_context",
-			VoidTy, RubyObjTy, Int8Ty, NULL));
+			VoidTy, RubyObjTy, PtrTy, NULL));
     }
     Value *args[2] = { rcv, sel };
     CallInst::Create(setCurrentMRIMethodContext, args, args + 2, "", bb);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101028/9dfbdf25/attachment.html>


More information about the macruby-changes mailing list