[llvm] 299c700 - [llvm-c][documentation] fix typo in `LLVMSizeOfTypeInBits` (#100839)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 23:45:18 PDT 2024


Author: wr7
Date: 2024-07-27T09:45:15+03:00
New Revision: 299c700a22460edb7bb6fe937cd23a5b823d4081

URL: https://github.com/llvm/llvm-project/commit/299c700a22460edb7bb6fe937cd23a5b823d4081
DIFF: https://github.com/llvm/llvm-project/commit/299c700a22460edb7bb6fe937cd23a5b823d4081.diff

LOG: [llvm-c][documentation] fix typo in `LLVMSizeOfTypeInBits` (#100839)

`LLVMSizeOfTypeInBits`:
- `Computes the size of a type in bytes for a target` -> `Computes the
size of a type in bits for a target`

Added: 
    

Modified: 
    llvm/include/llvm-c/Target.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm-c/Target.h b/llvm/include/llvm-c/Target.h
index 518b46d55bc3c..aef06a5f2486d 100644
--- a/llvm/include/llvm-c/Target.h
+++ b/llvm/include/llvm-c/Target.h
@@ -244,7 +244,7 @@ LLVMTypeRef LLVMIntPtrTypeInContext(LLVMContextRef C, LLVMTargetDataRef TD);
 LLVMTypeRef LLVMIntPtrTypeForASInContext(LLVMContextRef C, LLVMTargetDataRef TD,
                                          unsigned AS);
 
-/** Computes the size of a type in bytes for a target.
+/** Computes the size of a type in bits for a target.
     See the method llvm::DataLayout::getTypeSizeInBits. */
 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty);
 


        


More information about the llvm-commits mailing list