aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-02-17 16:30:39 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-02-17 16:30:39 +0000
commit368d460d3571c557b573270549afc09645c1b7a9 (patch)
tree2b5667594565f66237226555a0d25fa105a7c78f /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent0d0b406aba70388b3221fe9beb11d09592f3a431 (diff)
downloadllvm-368d460d3571c557b573270549afc09645c1b7a9.zip
llvm-368d460d3571c557b573270549afc09645c1b7a9.tar.gz
llvm-368d460d3571c557b573270549afc09645c1b7a9.tar.bz2
... and it's probably best to use the correct alignment, rather than just guessing that it's the same as the size.
llvm-svn: 150813
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 0f291af..273f6b6 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -79,7 +79,7 @@ void TargetLoweringObjectFileELF::emitPersonalityValue(MCStreamer &Streamer,
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);