diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-24 07:03:39 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-24 07:03:39 +0000 |
commit | de268f7dcf8a650afde162b84608ed434fb10613 (patch) | |
tree | 250c94724432f42bc7b16bfe650b4ab95ac7fd1c /lib/Target/TargetData.cpp | |
parent | bc51340c85e7474fd3852a5ea0c4d58d54bd4cba (diff) |
Renamed getTypeAlignmentShift() to getPreferredTypeAlignmentShift().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index e958009494..e950e56f56 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -450,7 +450,7 @@ unsigned char TargetData::getTypeAlignmentPref(const Type *Ty) const { return Align; } -unsigned char TargetData::getTypeAlignmentShift(const Type *Ty) const { +unsigned char TargetData::getPreferredTypeAlignmentShift(const Type *Ty) const { unsigned Align = getTypeAlignmentPref(Ty); assert(!(Align & (Align-1)) && "Alignment is not a power of two!"); return Log2_32(Align); @@ -508,7 +508,7 @@ uint64_t TargetData::getIndexedOffset(const Type *ptrTy, /// requested alignment (if the global has one). unsigned TargetData::getPreferredAlignmentLog(const GlobalVariable *GV) const { const Type *ElemType = GV->getType()->getElementType(); - unsigned Alignment = getTypeAlignmentShift(ElemType); + unsigned Alignment = getPreferredTypeAlignmentShift(ElemType); if (GV->getAlignment() > (1U << Alignment)) Alignment = Log2_32(GV->getAlignment()); |