[llvm-bugs] [Bug 27352] New: Split up DISubprogram
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 14 11:22:38 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27352
Bug ID: 27352
Summary: Split up DISubprogram
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: DebugInfo
Assignee: unassignedbugs at nondot.org
Reporter: aprantl at apple.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
There are two types of DISubprogram:
(1) Subprogram definitions (which belong to a compile unit and are attached to
a Function)
(2) Subprogram declarations (which are part of the type hierarchy)
These should really be separate classes. Splitting them up would not just
simplify code and reduce overall awkwardness, but it would also allow us to
save memory by getting rid of extra fields that are not necessary. For example,
declarations don't need a declaration pointer, a list of variables, or a
compile unit.
Ideally the new DISubprogramDecl would be a subclass of DIType instead of
DIScope.
http://www.llvm.org/docs/doxygen/html/classllvm_1_1DIScope__inherit__graph.png
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160414/9e4ffe35/attachment.html>
More information about the llvm-bugs
mailing list