[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Evan Cheng
evan.cheng at apple.com
Tue Jan 23 23:03:59 PST 2007
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.81 -> 1.82
---
Log message:
Renamed getTypeAlignmentShift() to getPreferredTypeAlignmentShift().
---
Diffs of the changes: (+2 -2)
TargetData.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.81 llvm/lib/Target/TargetData.cpp:1.82
--- llvm/lib/Target/TargetData.cpp:1.81 Mon Jan 22 17:08:19 2007
+++ llvm/lib/Target/TargetData.cpp Wed Jan 24 01:03:39 2007
@@ -450,7 +450,7 @@
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 @@
/// 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());
More information about the llvm-commits
mailing list