diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2012-02-17 16:30:39 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2012-02-17 16:30:39 +0000 |
commit | 50f603fff686df4a5ffaf01aa7af43aa64cf4615 (patch) | |
tree | e7be9cc8b516b7229e7482b538a881fcbca45fd5 /lib/CodeGen | |
parent | ca5b752d1873707c5c7d846515998ccf5002edca (diff) | |
download | external_llvm-50f603fff686df4a5ffaf01aa7af43aa64cf4615.zip external_llvm-50f603fff686df4a5ffaf01aa7af43aa64cf4615.tar.gz external_llvm-50f603fff686df4a5ffaf01aa7af43aa64cf4615.tar.bz2 |
... and it's probably best to use the correct alignment, rather than just guessing that it's the same as the size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 0f291af..273f6b6 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/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); |