浏览代码

dbgllvm: remove restriction to only write struct procdef in context of struct

Does not make a difference for LLVM since all debug info for procdefs is
assigned to the definition instructions for the procdef anyway, and avoids
issues when only generating line info (in that case the structs will never
be processed, but we still have to generate the basic debug info for their
procdefs to provide a scope for their line info)
Jonas Maebe 3 年之前
父节点
当前提交
40418f5b3d
共有 1 个文件被更改,包括 0 次插入16 次删除
  1. 0 16
      compiler/llvm/dbgllvm.pas

+ 0 - 16
compiler/llvm/dbgllvm.pas

@@ -1208,22 +1208,6 @@ implementation
           exit;
         defnumberlist.Add(def);
 
-        { Write methods and only in the scope of their parent objectdefs.  }
-        if (def.owner.symtabletype in [objectsymtable,recordsymtable]) then
-          begin
-            { this code can also work for nested procdefs, but is not yet
-              activated for those because there is no clear advantage yet to
-              limiting the scope of nested procedures to that of their parent,
-              and it makes it impossible to set breakpoints in them by
-              referring to their name.  }
-            st:=def.owner;
-            while assigned(st.defowner) and
-                  (tdef(st.defowner).typ=procdef) do
-              st:=tprocdef(st.defowner).owner;
-            if assigned(st) and
-               (tdef(st.defowner).dbg_state<>dbg_state_writing) then
-              exit;
-          end;
         { we have to attach the debug info to the definition instruction of the
           proc }
         prologfileinfo:=nil;