[llvm-bugs] [Bug 41648] New: Release note: API change to DIBuilder::createFunction etc

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 29 08:07:18 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41648

            Bug ID: 41648
           Summary: Release note: API change to DIBuilder::createFunction
                    etc
           Product: Documentation
           Version: 8.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
          Assignee: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org

(After PR41599 and a separate private query, it really seems this should
have had a release note.  Tom please DTRT with this, rephrase as needed.)

Three of the IR library methods related to debugging information for
functions and methods have changed their prototypes:

  DIBuilder::createMethod
  DIBuilder::createFunction
  DIBuilder::createTempFunctionFwdDecl

In all cases, several individual parameters were removed, and replaced
by a single 'SPFlags' (subprogram flags) parameter. The individual
parameters are: 'isLocalToUnit'; 'isDefinition'; 'isOptimized'; and
for 'createMethod', 'Virtuality'.  The new 'SPFlags' parameter has a
default value equivalent to passing 'false' for the three 'bool'
parameters, and zero (non-virtual) to the 'Virtuality' parameter.  For
any old-style API call that passed 'true' or a non-zero virtuality to
these methods, you will need to substitute the correct 'SPFlags' value.
The helper method 'DISubprogram::toSPFlags()' might be useful in making
this conversion.

-- 
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/20190429/a9729e81/attachment-0001.html>


More information about the llvm-bugs mailing list