[macruby-changes] [4133] MacRuby/trunk/vm.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 21 14:04:42 PDT 2010
Revision: 4133
http://trac.macosforge.org/projects/ruby/changeset/4133
Author: lsansonetti at apple.com
Date: 2010-05-21 14:04:40 -0700 (Fri, 21 May 2010)
Log Message:
-----------
temporarily revert r4132
Revision Links:
--------------
http://trac.macosforge.org/projects/ruby/changeset/4132
Modified Paths:
--------------
MacRuby/trunk/vm.cpp
Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp 2010-05-21 20:43:57 UTC (rev 4132)
+++ MacRuby/trunk/vm.cpp 2010-05-21 21:04:40 UTC (rev 4133)
@@ -266,8 +266,9 @@
std::string path;
for (std::vector<EmittedFunctionDetails::LineStart>::const_iterator iter = Details.LineStarts.begin(); iter != Details.LineStarts.end(); ++iter) {
#if LLVM_TOT
- MDNode *scope = iter->Loc.getScope(F.getContext());
- DILocation dil = DILocation(scope);
+ //MDNode *scope = iter->Loc.getScope(F.getContext());
+ //DILocation dil = DILocation(scope);
+ DILocation dil = Details.MF->getDILocation(iter->Loc);
if (path.size() == 0) {
DIScope scope = dil.getScope();
path.append(scope.getDirectory());
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100521/544440ce/attachment.html>
More information about the macruby-changes
mailing list