[llvm-commits] [llvm] r150813 - /llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
David Chisnall
csdavec at swan.ac.uk
Fri Feb 17 08:30:40 PST 2012
Author: theraven
Date: Fri Feb 17 10:30:39 2012
New Revision: 150813
URL: http://llvm.org/viewvc/llvm-project?rev=150813&view=rev
Log:
... and it's probably best to use the correct alignment, rather than just guessing that it's the same as the size.
Modified:
llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Modified: llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp?rev=150813&r1=150812&r2=150813&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp Fri Feb 17 10:30:39 2012
@@ -79,7 +79,7 @@
0, Label->getName());
unsigned Size = TM.getTargetData()->getPointerSize();
Streamer.SwitchSection(Sec);
- Streamer.EmitValueToAlignment(Size);
+ Streamer.EmitValueToAlignment(TM.getTargetData()->getPointerABIAlignment());
Streamer.EmitSymbolAttribute(Label, MCSA_ELF_TypeObject);
const MCExpr *E = MCConstantExpr::Create(Size, getContext());
Streamer.EmitELFSize(Label, E);
More information about the llvm-commits
mailing list