23
23
extern "C" {
24
24
#endif
25
25
26
- /// Debug info flags.
26
+ /**
27
+ * Debug info flags.
28
+ */
27
29
typedef enum {
28
30
LLVMDIFlagZero = 0 ,
29
31
LLVMDIFlagPrivate = 1 ,
@@ -58,7 +60,9 @@ typedef enum {
58
60
LLVMDIFlagVirtualInheritance
59
61
} LLVMDIFlags ;
60
62
61
- /// Source languages known by DWARF.
63
+ /**
64
+ * Source languages known by DWARF.
65
+ */
62
66
typedef enum {
63
67
LLVMDWARFSourceLanguageC89 ,
64
68
LLVMDWARFSourceLanguageC ,
@@ -106,68 +110,85 @@ typedef enum {
106
110
LLVMDWARFSourceLanguageBORLAND_Delphi
107
111
} LLVMDWARFSourceLanguage ;
108
112
109
- /// The amount of debug information to emit.
113
+ /**
114
+ * The amount of debug information to emit.
115
+ */
110
116
typedef enum {
111
117
LLVMDWARFEmissionNone = 0 ,
112
118
LLVMDWARFEmissionFull ,
113
119
LLVMDWARFEmissionLineTablesOnly
114
120
} LLVMDWARFEmissionKind ;
115
121
116
- /// The current debug metadata version number.
122
+ /**
123
+ * The current debug metadata version number.
124
+ */
117
125
unsigned LLVMDebugMetadataVersion (void );
118
126
119
- /// The version of debug metadata that's present in the provided \c Module.
127
+ /**
128
+ * The version of debug metadata that's present in the provided \c Module.
129
+ */
120
130
unsigned LLVMGetModuleDebugMetadataVersion (LLVMModuleRef Module );
121
131
122
- /// Strip debug info in the module if it exists.
123
- ///
124
- /// To do this, we remove all calls to the debugger intrinsics and any named
125
- /// metadata for debugging. We also remove debug locations for instructions.
126
- /// Return true if module is modified.
132
+ /**
133
+ * Strip debug info in the module if it exists.
134
+ * To do this, we remove all calls to the debugger intrinsics and any named
135
+ * metadata for debugging. We also remove debug locations for instructions.
136
+ * Return true if module is modified.
137
+ */
127
138
LLVMBool LLVMStripModuleDebugInfo (LLVMModuleRef Module );
128
139
129
- /// Construct a builder for a module, and do not allow for unresolved nodes
130
- /// attached to the module.
140
+ /**
141
+ * Construct a builder for a module, and do not allow for unresolved nodes
142
+ * attached to the module.
143
+ */
131
144
LLVMDIBuilderRef LLVMCreateDIBuilderDisallowUnresolved (LLVMModuleRef M );
132
145
133
- /// Construct a builder for a module and collect unresolved nodes attached
134
- /// to the module in order to resolve cycles during a call to
135
- /// \c LLVMDIBuilderFinalize.
146
+ /**
147
+ * Construct a builder for a module and collect unresolved nodes attached
148
+ * to the module in order to resolve cycles during a call to
149
+ * \c LLVMDIBuilderFinalize.
150
+ */
136
151
LLVMDIBuilderRef LLVMCreateDIBuilder (LLVMModuleRef M );
137
152
138
- /// Deallocates the DIBuilder and everything it owns.
139
- /// @note You must call \c LLVMDIBuilderFinalize before this
153
+ /**
154
+ * Deallocates the DIBuilder and everything it owns.
155
+ * @note You must call \c LLVMDIBuilderFinalize before this
156
+ */
140
157
void LLVMDisposeDIBuilder (LLVMDIBuilderRef Builder );
141
158
142
- /// Construct any deferred debug info descriptors.
159
+ /**
160
+ * Construct any deferred debug info descriptors.
161
+ */
143
162
void LLVMDIBuilderFinalize (LLVMDIBuilderRef Builder );
144
163
145
- /// A CompileUnit provides an anchor for all debugging
146
- /// information generated during this instance of compilation.
147
- /// \param Lang Source programming language, eg.
148
- /// \c LLVMDWARFSourceLanguageC99
149
- /// \param FileRef File info.
150
- /// \param Producer Identify the producer of debugging information
151
- /// and code. Usually this is a compiler
152
- /// version string.
153
- /// \param ProducerLen The length of the C string passed to \c Producer.
154
- /// \param isOptimized A boolean flag which indicates whether optimization
155
- /// is enabled or not.
156
- /// \param Flags This string lists command line options. This
157
- /// string is directly embedded in debug info
158
- /// output which may be used by a tool
159
- /// analyzing generated debugging information.
160
- /// \param FlagsLen The length of the C string passed to \c Flags.
161
- /// \param RuntimeVer This indicates runtime version for languages like
162
- /// Objective-C.
163
- /// \param SplitName The name of the file that we'll split debug info
164
- /// out into.
165
- /// \param SplitNameLen The length of the C string passed to \c SplitName.
166
- /// \param Kind The kind of debug information to generate.
167
- /// \param DWOId The DWOId if this is a split skeleton compile unit.
168
- /// \param SplitDebugInlining Whether to emit inline debug info.
169
- /// \param DebugInfoForProfiling Whether to emit extra debug info for
170
- /// profile collection.
164
+ /**
165
+ * A CompileUnit provides an anchor for all debugging
166
+ * information generated during this instance of compilation.
167
+ * \param Lang Source programming language, eg.
168
+ * \c LLVMDWARFSourceLanguageC99
169
+ * \param FileRef File info.
170
+ * \param Producer Identify the producer of debugging information
171
+ * and code. Usually this is a compiler
172
+ * version string.
173
+ * \param ProducerLen The length of the C string passed to \c Producer.
174
+ * \param isOptimized A boolean flag which indicates whether optimization
175
+ * is enabled or not.
176
+ * \param Flags This string lists command line options. This
177
+ * string is directly embedded in debug info
178
+ * output which may be used by a tool
179
+ * analyzing generated debugging information.
180
+ * \param FlagsLen The length of the C string passed to \c Flags.
181
+ * \param RuntimeVer This indicates runtime version for languages like
182
+ * Objective-C.
183
+ * \param SplitName The name of the file that we'll split debug info
184
+ * out into.
185
+ * \param SplitNameLen The length of the C string passed to \c SplitName.
186
+ * \param Kind The kind of debug information to generate.
187
+ * \param DWOId The DWOId if this is a split skeleton compile unit.
188
+ * \param SplitDebugInlining Whether to emit inline debug info.
189
+ * \param DebugInfoForProfiling Whether to emit extra debug info for
190
+ * profile collection.
191
+ */
171
192
LLVMMetadataRef LLVMDIBuilderCreateCompileUnit (
172
193
LLVMDIBuilderRef Builder , LLVMDWARFSourceLanguage Lang ,
173
194
LLVMMetadataRef FileRef , const char * Producer , size_t ProducerLen ,
@@ -176,32 +197,36 @@ LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(
176
197
LLVMDWARFEmissionKind Kind , unsigned DWOId , LLVMBool SplitDebugInlining ,
177
198
LLVMBool DebugInfoForProfiling );
178
199
179
- /// Create a file descriptor to hold debugging information for a file.
180
- /// \param Builder The DIBuilder.
181
- /// \param Filename File name.
182
- /// \param FilenameLen The length of the C string passed to \c Filename.
183
- /// \param Directory Directory.
184
- /// \param DirectoryLen The length of the C string passed to \c Directory.
200
+ /**
201
+ * Create a file descriptor to hold debugging information for a file.
202
+ * \param Builder The DIBuilder.
203
+ * \param Filename File name.
204
+ * \param FilenameLen The length of the C string passed to \c Filename.
205
+ * \param Directory Directory.
206
+ * \param DirectoryLen The length of the C string passed to \c Directory.
207
+ */
185
208
LLVMMetadataRef
186
209
LLVMDIBuilderCreateFile (LLVMDIBuilderRef Builder , const char * Filename ,
187
210
size_t FilenameLen , const char * Directory ,
188
211
size_t DirectoryLen );
189
212
190
- /// Creates a new DebugLocation that describes a source location.
191
- /// \param Line The line in the source file.
192
- /// \param Column The column in the source file.
193
- /// \param Scope The scope in which the location resides.
194
- /// \param InlinedAt The scope where this location was inlined, if at all.
195
- /// (optional).
196
- /// \note If the item to which this location is attached cannot be
197
- /// attributed to a source line, pass 0 for the line and column.
213
+ /**
214
+ * Creates a new DebugLocation that describes a source location.
215
+ * \param Line The line in the source file.
216
+ * \param Column The column in the source file.
217
+ * \param Scope The scope in which the location resides.
218
+ * \param InlinedAt The scope where this location was inlined, if at all.
219
+ * (optional).
220
+ * \note If the item to which this location is attached cannot be
221
+ * attributed to a source line, pass 0 for the line and column.
222
+ */
198
223
LLVMMetadataRef
199
224
LLVMDIBuilderCreateDebugLocation (LLVMContextRef Ctx , unsigned Line ,
200
225
unsigned Column , LLVMMetadataRef Scope ,
201
226
LLVMMetadataRef InlinedAt );
202
227
203
228
#ifdef __cplusplus
204
- } // end extern "C"
229
+ } /* end extern "C" */
205
230
#endif
206
231
207
232
#endif
0 commit comments