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

source_changes at macosforge.org source_changes at macosforge.org
Tue Oct 19 18:19:22 PDT 2010


Revision: 4809
          http://trac.macosforge.org/projects/ruby/changeset/4809
Author:   lsansonetti at apple.com
Date:     2010-10-19 18:19:19 -0700 (Tue, 19 Oct 2010)
Log Message:
-----------
attach dwarf metadata to yield statements

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

Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp	2010-10-19 20:28:04 UTC (rev 4808)
+++ MacRuby/trunk/compiler.cpp	2010-10-20 01:19:19 UTC (rev 4809)
@@ -3283,7 +3283,8 @@
     params.push_back(ConstantInt::get(Int8Ty, opt));
     params.push_back(argv);    
 
-    Value *val = compile_protected_call(yieldFunc, params);
+    Instruction *val = compile_protected_call(yieldFunc, params);
+    attach_current_line_metadata(val);
 
     Value *broken = CallInst::Create(getBrokenFunc, "", bb);
     Value *is_broken = new ICmpInst(*bb, ICmpInst::ICMP_NE, broken, undefVal);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101019/2edc6e8d/attachment.html>


More information about the macruby-changes mailing list