From ceb4d1aecb9deffe59b3dcdc9a783ffde8477be9 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 12 Jan 2009 20:38:59 +0000 Subject: Rename getABITypeSize to getTypePaddedSize, as suggested by Chris. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62099 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Target.h | 2 +- include/llvm/Target/TargetData.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/llvm-c/Target.h b/include/llvm-c/Target.h index d3b4e2f..2aa5bd9 100644 --- a/include/llvm-c/Target.h +++ b/include/llvm-c/Target.h @@ -70,7 +70,7 @@ unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef, LLVMTypeRef); unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef, LLVMTypeRef); /** Computes the ABI size of a type in bytes for a target. - See the method llvm::TargetData::getABITypeSize. */ + See the method llvm::TargetData::getTypePaddedSize. */ unsigned long long LLVMABISizeOfType(LLVMTargetDataRef, LLVMTypeRef); /** Computes the ABI alignment of a type in bytes for a target. diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 5ab33f4..92feebf 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -173,21 +173,21 @@ public: return 8*getTypeStoreSize(Ty); } - /// getABITypeSize - Return the offset in bytes between successive objects + /// getTypePaddedSize - Return the offset in bytes between successive objects /// of the specified type, including alignment padding. This is the amount /// that alloca reserves for this type. For example, returns 12 or 16 for /// x86_fp80, depending on alignment. - uint64_t getABITypeSize(const Type* Ty) const { + uint64_t getTypePaddedSize(const Type* Ty) const { // Round up to the next alignment boundary. return RoundUpAlignment(getTypeStoreSize(Ty), getABITypeAlignment(Ty)); } - /// getABITypeSizeInBits - Return the offset in bits between successive + /// getTypePaddedSizeInBits - Return the offset in bits between successive /// objects of the specified type, including alignment padding; always a /// multiple of 8. This is the amount that alloca reserves for this type. /// For example, returns 96 or 128 for x86_fp80, depending on alignment. - uint64_t getABITypeSizeInBits(const Type* Ty) const { - return 8*getABITypeSize(Ty); + uint64_t getTypePaddedSizeInBits(const Type* Ty) const { + return 8*getTypePaddedSize(Ty); } /// getABITypeAlignment - Return the minimum ABI-required alignment for the -- cgit v1.1