diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-17 20:08:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-17 20:08:20 +0000 |
commit | dfe2d359c5e5517a7cbbe83009cc23518f4ff65a (patch) | |
tree | 094446c176d2255fb3c511ee31753d4ccb09d0db /llvm/lib/MC/MCSymbolELF.cpp | |
parent | e8accef8660e5a5af47e612cccb74dbc95ca5bc7 (diff) | |
download | bcm5719-llvm-dfe2d359c5e5517a7cbbe83009cc23518f4ff65a.tar.gz bcm5719-llvm-dfe2d359c5e5517a7cbbe83009cc23518f4ff65a.zip |
Move IsUsedInReloc from MCSymbolELF to MCSymbol.
There is a free bit is MCSymbol and MachO needs the same information.
llvm-svn: 239933
Diffstat (limited to 'llvm/lib/MC/MCSymbolELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCSymbolELF.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/llvm/lib/MC/MCSymbolELF.cpp b/llvm/lib/MC/MCSymbolELF.cpp index c3620651f88..ec7ef447ff8 100644 --- a/llvm/lib/MC/MCSymbolELF.cpp +++ b/llvm/lib/MC/MCSymbolELF.cpp @@ -36,10 +36,7 @@ enum { ELF_WeakrefUsedInReloc_Shift = 11, // One bit. - ELF_UsedInReloc_Shift = 12, - - // One bit. - ELF_BindingSet_Shift = 13 + ELF_BindingSet_Shift = 12 }; } @@ -175,15 +172,6 @@ unsigned MCSymbolELF::getOther() const { return Other << 5; } -void MCSymbolELF::setUsedInReloc() const { - uint32_t OtherFlags = getFlags() & ~(0x1 << ELF_UsedInReloc_Shift); - setFlags(OtherFlags | (1 << ELF_UsedInReloc_Shift)); -} - -bool MCSymbolELF::isUsedInReloc() const { - return getFlags() & (0x1 << ELF_UsedInReloc_Shift); -} - void MCSymbolELF::setIsWeakrefUsedInReloc() const { uint32_t OtherFlags = getFlags() & ~(0x1 << ELF_WeakrefUsedInReloc_Shift); setFlags(OtherFlags | (1 << ELF_WeakrefUsedInReloc_Shift)); |