mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Centralize handling of ELF_Other_ThumbFunc.
No functionality change. llvm-svn: 206988
This commit is contained in:
parent
87ddc3340b
commit
3b222f0320
@ -513,7 +513,8 @@ uint64_t ELFObjectWriter::SymbolValue(MCSymbolData &OrigData,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Data && Data->getFlags() & ELF_Other_ThumbFunc)
|
if ((Data && Data->getFlags() & ELF_Other_ThumbFunc) ||
|
||||||
|
OrigData.getFlags() & ELF_Other_ThumbFunc)
|
||||||
Res |= 1;
|
Res |= 1;
|
||||||
|
|
||||||
if (!Symbol || !Symbol->isInSection())
|
if (!Symbol || !Symbol->isInSection())
|
||||||
@ -644,8 +645,6 @@ void ELFObjectWriter::WriteSymbol(SymbolTableWriter &Writer, ELFSymbolData &MSD,
|
|||||||
Other |= Visibility;
|
Other |= Visibility;
|
||||||
|
|
||||||
uint64_t Value = SymbolValue(OrigData, Layout);
|
uint64_t Value = SymbolValue(OrigData, Layout);
|
||||||
if (OrigData.getFlags() & ELF_Other_ThumbFunc)
|
|
||||||
Value |= 1;
|
|
||||||
uint64_t Size = 0;
|
uint64_t Size = 0;
|
||||||
|
|
||||||
const MCExpr *ESize = OrigData.getSize();
|
const MCExpr *ESize = OrigData.getSize();
|
||||||
|
Loading…
Reference in New Issue
Block a user