@@ -2063,6 +2063,9 @@ unsafe extern "C" {
2063
2063
ValueLen : size_t ,
2064
2064
) ;
2065
2065
2066
+ /// As of LLVM 18/19, the corresponding LLVM-C function is hard-coded to
2067
+ /// assume `DebugNameTableKind = Default`, but we sometimes want to pass
2068
+ /// `None`.
2066
2069
pub fn LLVMRustDIBuilderCreateCompileUnit < ' a > (
2067
2070
Builder : & DIBuilder < ' a > ,
2068
2071
Lang : c_uint ,
@@ -2080,6 +2083,8 @@ unsafe extern "C" {
2080
2083
DebugNameTableKind : DebugNameTableKind ,
2081
2084
) -> & ' a DIDescriptor ;
2082
2085
2086
+ /// As of LLVM 18/19, the corresponding LLVM-C function is hard-coded to
2087
+ /// assume that there is no optional checksum or optional source text.
2083
2088
pub fn LLVMRustDIBuilderCreateFile < ' a > (
2084
2089
Builder : & DIBuilder < ' a > ,
2085
2090
Filename : * const c_char ,
@@ -2093,6 +2098,8 @@ unsafe extern "C" {
2093
2098
SourceLen : size_t ,
2094
2099
) -> & ' a DIFile ;
2095
2100
2101
+ /// As of LLVM 18/19, the corresponding LLVM-C function only supports a
2102
+ /// subset of `DISPFlags`.
2096
2103
pub fn LLVMRustDIBuilderCreateFunction < ' a > (
2097
2104
Builder : & DIBuilder < ' a > ,
2098
2105
Scope : & ' a DIDescriptor ,
@@ -2111,6 +2118,7 @@ unsafe extern "C" {
2111
2118
Decl : Option < & ' a DIDescriptor > ,
2112
2119
) -> & ' a DISubprogram ;
2113
2120
2121
+ /// As of LLVM 18/19, there is no corresponding LLVM-C function.
2114
2122
pub fn LLVMRustDIBuilderCreateMethod < ' a > (
2115
2123
Builder : & DIBuilder < ' a > ,
2116
2124
Scope : & ' a DIDescriptor ,
@@ -2126,6 +2134,7 @@ unsafe extern "C" {
2126
2134
TParam : & ' a DIArray ,
2127
2135
) -> & ' a DISubprogram ;
2128
2136
2137
+ /// As of LLVM 18/19, there is no corresponding LLVM-C function.
2129
2138
pub fn LLVMRustDIBuilderCreateVariantMemberType < ' a > (
2130
2139
Builder : & DIBuilder < ' a > ,
2131
2140
Scope : & ' a DIScope ,
@@ -2141,6 +2150,7 @@ unsafe extern "C" {
2141
2150
Ty : & ' a DIType ,
2142
2151
) -> & ' a DIType ;
2143
2152
2153
+ /// FIXME(#134001): This doesn't map cleanly to any single LLVM-C function.
2144
2154
pub fn LLVMRustDIBuilderCreateStaticVariable < ' a > (
2145
2155
Builder : & DIBuilder < ' a > ,
2146
2156
Context : Option < & ' a DIScope > ,
@@ -2157,6 +2167,7 @@ unsafe extern "C" {
2157
2167
AlignInBits : u32 ,
2158
2168
) -> & ' a DIGlobalVariableExpression ;
2159
2169
2170
+ /// FIXME(#134001): This doesn't map cleanly to any single LLVM-C function.
2160
2171
pub fn LLVMRustDIBuilderCreateVariable < ' a > (
2161
2172
Builder : & DIBuilder < ' a > ,
2162
2173
Tag : c_uint ,
@@ -2183,6 +2194,8 @@ unsafe extern "C" {
2183
2194
Block : & ' ll BasicBlock ,
2184
2195
) ;
2185
2196
2197
+ /// As of LLVM 18/19, the corresponding LLVM-C function is hard-coded to
2198
+ /// assume a 64-bit value.
2186
2199
pub fn LLVMRustDIBuilderCreateEnumerator < ' a > (
2187
2200
Builder : & DIBuilder < ' a > ,
2188
2201
Name : * const c_char ,
@@ -2192,6 +2205,8 @@ unsafe extern "C" {
2192
2205
IsUnsigned : bool ,
2193
2206
) -> & ' a DIEnumerator ;
2194
2207
2208
+ /// As of LLVM 18/19, the corresponding LLVM-C function is hard-coded to
2209
+ /// assume `IsScoped = false`, but we want to pass `true`.
2195
2210
pub fn LLVMRustDIBuilderCreateEnumerationType < ' a > (
2196
2211
Builder : & DIBuilder < ' a > ,
2197
2212
Scope : & ' a DIScope ,
@@ -2206,6 +2221,7 @@ unsafe extern "C" {
2206
2221
IsScoped : bool ,
2207
2222
) -> & ' a DIType ;
2208
2223
2224
+ /// As of LLVM 18/19, there is no corresponding LLVM-C function.
2209
2225
pub fn LLVMRustDIBuilderCreateVariantPart < ' a > (
2210
2226
Builder : & DIBuilder < ' a > ,
2211
2227
Scope : & ' a DIScope ,
@@ -2222,6 +2238,7 @@ unsafe extern "C" {
2222
2238
UniqueIdLen : size_t ,
2223
2239
) -> & ' a DIDerivedType ;
2224
2240
2241
+ /// As of LLVM 18/19, there is no corresponding LLVM-C function.
2225
2242
pub fn LLVMRustDIBuilderCreateTemplateTypeParameter < ' a > (
2226
2243
Builder : & DIBuilder < ' a > ,
2227
2244
Scope : Option < & ' a DIScope > ,
@@ -2230,13 +2247,15 @@ unsafe extern "C" {
2230
2247
Ty : & ' a DIType ,
2231
2248
) -> & ' a DITemplateTypeParameter ;
2232
2249
2250
+ /// As of LLVM 18/19, there is no corresponding LLVM-C function.
2233
2251
pub fn LLVMRustDICompositeTypeReplaceArrays < ' a > (
2234
2252
Builder : & DIBuilder < ' a > ,
2235
2253
CompositeType : & ' a DIType ,
2236
2254
Elements : Option < & ' a DIArray > ,
2237
2255
Params : Option < & ' a DIArray > ,
2238
2256
) ;
2239
2257
2258
+ /// As of LLVM 18/19, there is no corresponding LLVM-C function.
2240
2259
pub fn LLVMRustDILocationCloneWithBaseDiscriminator < ' a > (
2241
2260
Location : & ' a DILocation ,
2242
2261
BD : c_uint ,
0 commit comments