aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MathExtras.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-04 05:59:23 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-04 05:59:23 +0000
commit8c006ee385ad27cf7e68b7d48626c123432b438b (patch)
tree299557710cbdac7feea4e929ed9b1a97a31d7cf1 /llvm/lib/Support/MathExtras.cpp
parentaf5f51f6a8e8fa5427b0c464931b307dcaaa4520 (diff)
downloadllvm-8c006ee385ad27cf7e68b7d48626c123432b438b.zip
llvm-8c006ee385ad27cf7e68b7d48626c123432b438b.tar.gz
llvm-8c006ee385ad27cf7e68b7d48626c123432b438b.tar.bz2
Bring back r239006 with a fix.
The fix is just that getOther had not been updated for packing the st_other values in fewer bits and could return spurious values: - unsigned Other = (getFlags() & (0x3f << ELF_STO_Shift)) >> ELF_STO_Shift; + unsigned Other = (getFlags() & (0x7 << ELF_STO_Shift)) >> ELF_STO_Shift; Original message: Pack the MCSymbolELF bit fields into MCSymbol's Flags. This reduces MCSymolfELF from 64 bytes to 56 bytes on x86_64. While at it, also make getOther/setOther easier to use by accepting unshifted STO_* values. llvm-svn: 239012
Diffstat (limited to 'llvm/lib/Support/MathExtras.cpp')
0 files changed, 0 insertions, 0 deletions