Skip to content

Commit 07eaa9b

Browse files
committed
Clean up comments in include/llvm-c/DebugInfo.h
Patch by Harlan Haskins! Differential Revision: https://reviews.llvm.org/D39568 llvm-svn: 317271
1 parent eac00c3 commit 07eaa9b

File tree

1 file changed

+84
-59
lines changed

1 file changed

+84
-59
lines changed

llvm/include/llvm-c/DebugInfo.h

Lines changed: 84 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
extern "C" {
2424
#endif
2525

26-
/// Debug info flags.
26+
/**
27+
* Debug info flags.
28+
*/
2729
typedef enum {
2830
LLVMDIFlagZero = 0,
2931
LLVMDIFlagPrivate = 1,
@@ -58,7 +60,9 @@ typedef enum {
5860
LLVMDIFlagVirtualInheritance
5961
} LLVMDIFlags;
6062

61-
/// Source languages known by DWARF.
63+
/**
64+
* Source languages known by DWARF.
65+
*/
6266
typedef enum {
6367
LLVMDWARFSourceLanguageC89,
6468
LLVMDWARFSourceLanguageC,
@@ -106,68 +110,85 @@ typedef enum {
106110
LLVMDWARFSourceLanguageBORLAND_Delphi
107111
} LLVMDWARFSourceLanguage;
108112

109-
/// The amount of debug information to emit.
113+
/**
114+
* The amount of debug information to emit.
115+
*/
110116
typedef enum {
111117
LLVMDWARFEmissionNone = 0,
112118
LLVMDWARFEmissionFull,
113119
LLVMDWARFEmissionLineTablesOnly
114120
} LLVMDWARFEmissionKind;
115121

116-
/// The current debug metadata version number.
122+
/**
123+
* The current debug metadata version number.
124+
*/
117125
unsigned LLVMDebugMetadataVersion(void);
118126

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+
*/
120130
unsigned LLVMGetModuleDebugMetadataVersion(LLVMModuleRef Module);
121131

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+
*/
127138
LLVMBool LLVMStripModuleDebugInfo(LLVMModuleRef Module);
128139

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+
*/
131144
LLVMDIBuilderRef LLVMCreateDIBuilderDisallowUnresolved(LLVMModuleRef M);
132145

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+
*/
136151
LLVMDIBuilderRef LLVMCreateDIBuilder(LLVMModuleRef M);
137152

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+
*/
140157
void LLVMDisposeDIBuilder(LLVMDIBuilderRef Builder);
141158

142-
/// Construct any deferred debug info descriptors.
159+
/**
160+
* Construct any deferred debug info descriptors.
161+
*/
143162
void LLVMDIBuilderFinalize(LLVMDIBuilderRef Builder);
144163

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+
*/
171192
LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(
172193
LLVMDIBuilderRef Builder, LLVMDWARFSourceLanguage Lang,
173194
LLVMMetadataRef FileRef, const char *Producer, size_t ProducerLen,
@@ -176,32 +197,36 @@ LLVMMetadataRef LLVMDIBuilderCreateCompileUnit(
176197
LLVMDWARFEmissionKind Kind, unsigned DWOId, LLVMBool SplitDebugInlining,
177198
LLVMBool DebugInfoForProfiling);
178199

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+
*/
185208
LLVMMetadataRef
186209
LLVMDIBuilderCreateFile(LLVMDIBuilderRef Builder, const char *Filename,
187210
size_t FilenameLen, const char *Directory,
188211
size_t DirectoryLen);
189212

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+
*/
198223
LLVMMetadataRef
199224
LLVMDIBuilderCreateDebugLocation(LLVMContextRef Ctx, unsigned Line,
200225
unsigned Column, LLVMMetadataRef Scope,
201226
LLVMMetadataRef InlinedAt);
202227

203228
#ifdef __cplusplus
204-
} // end extern "C"
229+
} /* end extern "C" */
205230
#endif
206231

207232
#endif

0 commit comments

Comments
 (0)