Skip to content

Commit 9646a8f

Browse files
enhancement by adding comments
1 parent 48babe1 commit 9646a8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/include/llvm/IR/LLVMContext.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,13 @@ DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef)
366366

367367
/* Specialized opaque context conversions.
368368
*/
369+
//Converts an array of LLVMContextRef (C API opaque pointers) to
370+
//an array of LLVMContext** (C++ object pointers).
369371
inline LLVMContext **unwrap(LLVMContextRef* Tys) {
370372
return reinterpret_cast<LLVMContext**>(Tys);
371373
}
372-
374+
//Converts an array of const LLVMContext** (C++ object pointers) to
375+
//an array of LLVMContextRef (C API opaque pointers).
373376
inline LLVMContextRef *wrap(const LLVMContext **Tys) {
374377
return reinterpret_cast<LLVMContextRef*>(const_cast<LLVMContext**>(Tys));
375378
}

0 commit comments

Comments
 (0)