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

source_changes at macosforge.org source_changes at macosforge.org
Sat Jun 19 13:42:43 PDT 2010


Revision: 4254
          http://trac.macosforge.org/projects/ruby/changeset/4254
Author:   lsansonetti at apple.com
Date:     2010-06-19 13:42:43 -0700 (Sat, 19 Jun 2010)
Log Message:
-----------
create all functions with internal linkage (since the super dispatcher no longer requires external symbols)

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

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2010-06-19 10:21:53 UTC (rev 4253)
+++ MacRuby/trunk/compiler.cpp	2010-06-19 20:42:43 UTC (rev 4254)
@@ -2479,18 +2479,9 @@
     }
     FunctionType *ft = FunctionType::get(RubyObjTy, types, false);
 
-    std::string function_name;
-    if (ruby_aot_compile) {
-	function_name.append(RSTRING_PTR(ruby_aot_init_func));
-	function_name.append("_ruby_scope");
-    }
-    else {
-	function_name.append("__ruby_scope");
-    }
+    Function *f = Function::Create(ft, GlobalValue::InternalLinkage,
+	    "ruby_scope", module);
 
-    Function *f = Function::Create(ft, GlobalValue::ExternalLinkage,
-	    function_name, module);
-
     AllocaInst *old_dispatch_argv = dispatch_argv;
     BasicBlock *old_rescue_invoke_bb = rescue_invoke_bb;
     BasicBlock *old_rescue_rethrow_bb = rescue_rethrow_bb;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100619/13018f93/attachment.html>


More information about the macruby-changes mailing list