Skip to content

Commit 213f2ed

Browse files
committed
Add release note for DIBuilder API changes
llvm-svn: 363027
1 parent 9a2cfae commit 213f2ed

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

llvm/docs/ReleaseNotes.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,26 @@ updated to use LLJIT.
110110
MCJIT and ExecutionEngine continue to be supported, though ORC should be
111111
preferred for new projects.
112112

113+
Changes to the C++ APIs
114+
-----------------------
115+
116+
Three of the IR library methods related to debugging information for
117+
functions and methods have changed their prototypes:
118+
119+
DIBuilder::createMethod
120+
DIBuilder::createFunction
121+
DIBuilder::createTempFunctionFwdDecl
122+
123+
In all cases, several individual parameters were removed, and replaced
124+
by a single 'SPFlags' (subprogram flags) parameter. The individual
125+
parameters are: 'isLocalToUnit'; 'isDefinition'; 'isOptimized'; and
126+
for 'createMethod', 'Virtuality'. The new 'SPFlags' parameter has a
127+
default value equivalent to passing 'false' for the three 'bool'
128+
parameters, and zero (non-virtual) to the 'Virtuality' parameter. For
129+
any old-style API call that passed 'true' or a non-zero virtuality to
130+
these methods, you will need to substitute the correct 'SPFlags' value.
131+
The helper method 'DISubprogram::toSPFlags()' might be useful in making
132+
this conversion.
113133

114134
Changes to the AArch64 Target
115135
-----------------------------

0 commit comments

Comments
 (0)