diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-14 05:52:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-14 05:52:17 +0000 |
commit | 945e437c65a6e354bdb090ccabf4a3d374edf231 (patch) | |
tree | bc114a3c6f82141eff39a63020dc4852b866ad42 /llvm/lib/CodeGen/ELFWriter.cpp | |
parent | 0c5db231198bca3c416790edab01d47ef7ae6154 (diff) | |
download | bcm5719-llvm-945e437c65a6e354bdb090ccabf4a3d374edf231.tar.gz bcm5719-llvm-945e437c65a6e354bdb090ccabf4a3d374edf231.zip |
Generalize TargetData strings, to support more interesting forms of data.
Patch by Scott Michel.
llvm-svn: 34266
Diffstat (limited to 'llvm/lib/CodeGen/ELFWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ELFWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp index 5fd3dcc1d6c..ffc0a929f31 100644 --- a/llvm/lib/CodeGen/ELFWriter.cpp +++ b/llvm/lib/CodeGen/ELFWriter.cpp @@ -255,7 +255,7 @@ void ELFWriter::EmitGlobal(GlobalVariable *GV) { } const Type *GVType = (const Type*)GV->getType(); - unsigned Align = TM.getTargetData()->getTypeAlignmentPref(GVType); + unsigned Align = TM.getTargetData()->getPrefTypeAlignment(GVType); unsigned Size = TM.getTargetData()->getTypeSize(GVType); // If this global has a zero initializer, it is part of the .bss or common |