diff options
author | Duncan Sands <baldrick@free.fr> | 2009-01-12 20:38:59 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-01-12 20:38:59 +0000 |
commit | dc020f9c3c6ff10128bdf0693a0880c4bb7c019d (patch) | |
tree | 211bf6abe99446e0e9258e1580f542ba60230955 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 8e1555c7c3bf668fbda3fa9c13f0499332e1bf70 (diff) | |
download | bcm5719-llvm-dc020f9c3c6ff10128bdf0693a0880c4bb7c019d.tar.gz bcm5719-llvm-dc020f9c3c6ff10128bdf0693a0880c4bb7c019d.zip |
Rename getABITypeSize to getTypePaddedSize, as
suggested by Chris.
llvm-svn: 62099
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index b14c19d5b4d..8bae7bbb92c 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -503,7 +503,7 @@ unsigned MachineConstantPool::getConstantPoolIndex(Constant *C, unsigned Offset = 0; if (!Constants.empty()) { Offset = Constants.back().getOffset(); - Offset += TD->getABITypeSize(Constants.back().getType()); + Offset += TD->getTypePaddedSize(Constants.back().getType()); Offset = (Offset+AlignMask)&~AlignMask; } @@ -527,7 +527,7 @@ unsigned MachineConstantPool::getConstantPoolIndex(MachineConstantPoolValue *V, unsigned Offset = 0; if (!Constants.empty()) { Offset = Constants.back().getOffset(); - Offset += TD->getABITypeSize(Constants.back().getType()); + Offset += TD->getTypePaddedSize(Constants.back().getType()); Offset = (Offset+AlignMask)&~AlignMask; } |