31 ELF_IsSignature_Shift = 10,
34 ELF_WeakrefUsedInReloc_Shift = 11,
37 ELF_BindingSet_Shift = 12
61 setFlags(OtherFlags | (Val << ELF_STB_Shift));
120 setFlags(OtherFlags | (Val << ELF_STT_Shift));
150 setFlags(OtherFlags | (Visibility << ELF_STV_Shift));
154 unsigned Visibility = (
Flags >> ELF_STV_Shift) & 3;
159 assert((Other & 0x1f) == 0);
163 setFlags(OtherFlags | (Other << ELF_STO_Shift));
167 unsigned Other = (
Flags >> ELF_STO_Shift) & 7;
173 setFlags(OtherFlags | (1 << ELF_WeakrefUsedInReloc_Shift));
177 return getFlags() & (0x1 << ELF_WeakrefUsedInReloc_Shift);
182 setFlags(OtherFlags | (1 << ELF_IsSignature_Shift));
186 return getFlags() & (0x1 << ELF_IsSignature_Shift);
189 void MCSymbolELF::setIsBindingSet()
const {
191 setFlags(OtherFlags | (1 << ELF_BindingSet_Shift));
195 return getFlags() & (0x1 << ELF_BindingSet_Shift);
This class represents lattice values for constants.
unsigned getVisibility() const
unsigned getBinding() const
void setVisibility(unsigned Visibility)
bool isBindingSet() const
unsigned getOther() const
void setIsSignature() const
The instances of the Type class are immutable: once they are created, they are never changed...
void setOther(unsigned Other)
void setFlags(uint32_t Value) const
Set the (implementation defined) symbol flags.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void setType(unsigned Type) const
bool isWeakrefUsedInReloc() const
void setBinding(unsigned Binding) const
bool isDefined() const
isDefined - Check if this symbol is defined (i.e., it has an address).
bool isUsedInReloc() const
void setIsWeakrefUsedInReloc() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
uint32_t getFlags() const
Get the (implementation defined) symbol flags.