aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCSymbolELF.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-06-23Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC)Alexander Kornienko1-2/+2
Apparently, the style needs to be agreed upon first. llvm-svn: 240390
2015-06-19Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko1-2/+2
The patch is generated using this command: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ llvm/lib/ Thanks to Eugene Kosov for the original patch! llvm-svn: 240137
2015-06-17Move IsUsedInReloc from MCSymbolELF to MCSymbol.Rafael Espindola1-13/+1
There is a free bit is MCSymbol and MachO needs the same information. llvm-svn: 239933
2015-06-04Bring back r239006 with a fix.Rafael Espindola1-39/+136
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
2015-06-04Revert "Pack the MCSymbolELF bit fields into MCSymbol's Flags."Rafael Espindola1-135/+38
This reverts commit r239006. I am debugging the powerpc failures. llvm-svn: 239010
2015-06-04Pack the MCSymbolELF bit fields into MCSymbol's Flags.Rafael Espindola1-38/+135
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: 239006
2015-06-04Remove MCELFSymbolFlags.h. It is now internal to MCSymbolELF.Rafael Espindola1-1/+9
llvm-svn: 238996
2015-06-03Remember if a weakref of a symbol has been used.Rafael Espindola1-0/+6
This avoids yet another last minute patching of the binding. While at it, also simplify the weakref implementation a bit by not walking past it in the expression evaluation. llvm-svn: 238982
2015-06-03Store whether a symbol is a comdat signature in MCSymbolELF.Rafael Espindola1-4/+17
With this getBinging can now return the correct answer for all cases not involving a .symver and the elf writer doesn't need to patch it last minute. llvm-svn: 238980
2015-06-03Record in a MCSymbolELF if it has been used in a relocation.Rafael Espindola1-0/+9
No functionality change, just saves an on the side map. llvm-svn: 238979
2015-06-03Convert BindingExplicitlySet into a MCSymbolELF field.Rafael Espindola1-0/+1
I will pack it better in a followup patch. llvm-svn: 238975
2015-06-02Merge MCELF.h into MCSymbolELF.h.Rafael Espindola1-0/+79
Now that we have a dedicated type for ELF symbol, these helper functions can become member function of MCSymbolELF. llvm-svn: 238864