summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-28 22:31:51 +0000
committerDale Johannesen <dalej@apple.com>2008-02-28 22:31:51 +0000
commitcbde4c2206dee6feb3cf4dd5dc193d1381f4f0b2 (patch)
tree537466a395fcaba365d8455904d42fe830b2e880 /llvm/lib/CodeGen
parent09b64a4ed1d02585a29571f91fe792ab11c5d14a (diff)
downloadbcm5719-llvm-cbde4c2206dee6feb3cf4dd5dc193d1381f4f0b2.tar.gz
bcm5719-llvm-cbde4c2206dee6feb3cf4dd5dc193d1381f4f0b2.zip
Interface of getByValTypeAlignment differed between
generic & x86 versions; change generic to follow x86 and improve comments. Add PPC version (not right for non-Darwin.) llvm-svn: 47734
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index ff5289e0882..61a155e978c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -424,9 +424,10 @@ unsigned TargetLowering::getVectorTypeBreakdown(MVT::ValueType VT,
}
/// getByValTypeAlignment - Return the desired alignment for ByVal aggregate
-/// function arguments in the caller parameter area.
+/// function arguments in the caller parameter area. This is the actual
+/// alignment, not its logarithm.
unsigned TargetLowering::getByValTypeAlignment(const Type *Ty) const {
- return Log2_32(TD->getCallFrameTypeAlignment(Ty));
+ return TD->getCallFrameTypeAlignment(Ty);
}
SDOperand TargetLowering::getPICJumpTableRelocBase(SDOperand Table,
OpenPOWER on IntegriCloud