mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 14:50:26 +00:00
[ELF2] Writer: Fold variables, use setVisibility(). NFCI.
llvm-svn: 246861
This commit is contained in:
parent
c129c69105
commit
ad6c81c628
@ -327,12 +327,9 @@ template <class ELFT> void SymbolTableSection<ELFT>::writeTo(uint8_t *Buf) {
|
||||
break;
|
||||
}
|
||||
|
||||
uint8_t Type = InputSym.getType();
|
||||
uint8_t Binding = InputSym.getBinding();
|
||||
ESym->setBindingAndType(Binding, Type);
|
||||
ESym->setBindingAndType(InputSym.getBinding(), InputSym.getType());
|
||||
ESym->st_size = InputSym.st_size;
|
||||
uint8_t Other = InputSym.st_other;
|
||||
ESym->st_other = (Other & ~0x3) | Body->getMostConstrainingVisibility();
|
||||
ESym->setVisibility(Body->getMostConstrainingVisibility());
|
||||
if (InputSym.isAbsolute()) {
|
||||
ESym->st_shndx = SHN_ABS;
|
||||
ESym->st_value = InputSym.st_value;
|
||||
|
Loading…
Reference in New Issue
Block a user