[LLVMbugs] [Bug 1415] NEW: Refactor debug/eh emission code.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun May 13 10:37:54 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1415

           Summary: Refactor debug/eh emission code.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru


Current DwarfWriter is not so accurate during emission of information in the end
of functions. Usually it does the following (in the EndFunction method):

 -Emit some labels (marking end of function)
 -Emit some information in new section

Note, that labels should be in ".text" section and information is located in the
new section. Currently it does everything at once, and if, for example, writer
wants to emit some additional stuff *after function end* and *before* and other
information - it will fail.

I suggest to refactor interface: split EndFunction into EndFunctionPrepare and
EndFunction. First function should emit everything needed in the function scope
(thus in .text section) and second - emit everything in new section, etc. This
will allow us to "stack" different infomation emission passes without thoughts
about their order, etc.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list