aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ELFWriter.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-01-12 20:38:59 +0000
committerDuncan Sands <baldrick@free.fr>2009-01-12 20:38:59 +0000
commitd68f13bf716faa496767a21140fab558adddc19a (patch)
treeb81070777ea57a00082bbc345c47a9499d77d24d /lib/CodeGen/ELFWriter.cpp
parentcb59fd4ca7f3e796a6186fb7585c67234254bc67 (diff)
downloadexternal_llvm-d68f13bf716faa496767a21140fab558adddc19a.tar.gz
external_llvm-d68f13bf716faa496767a21140fab558adddc19a.tar.bz2
external_llvm-d68f13bf716faa496767a21140fab558adddc19a.zip
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
Diffstat (limited to 'lib/CodeGen/ELFWriter.cpp')
-rw-r--r--lib/CodeGen/ELFWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp
index f0da37aca3..5d2fca134e 100644
--- a/lib/CodeGen/ELFWriter.cpp
+++ b/lib/CodeGen/ELFWriter.cpp
@@ -276,7 +276,7 @@ void ELFWriter::EmitGlobal(GlobalVariable *GV) {
unsigned Align = TM.getTargetData()->getPreferredAlignment(GV);
unsigned Size =
- TM.getTargetData()->getABITypeSize(GV->getType()->getElementType());
+ TM.getTargetData()->getTypePaddedSize(GV->getType()->getElementType());
// If this global has a zero initializer, it is part of the .bss or common
// section.