1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Centralize handling of ELF_Other_ThumbFunc.

No functionality change.

llvm-svn: 206988
This commit is contained in:
Rafael Espindola 2014-04-23 14:42:32 +00:00
parent 87ddc3340b
commit 3b222f0320

View File

@ -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;
if (!Symbol || !Symbol->isInSection())
@ -644,8 +645,6 @@ void ELFObjectWriter::WriteSymbol(SymbolTableWriter &Writer, ELFSymbolData &MSD,
Other |= Visibility;
uint64_t Value = SymbolValue(OrigData, Layout);
if (OrigData.getFlags() & ELF_Other_ThumbFunc)
Value |= 1;
uint64_t Size = 0;
const MCExpr *ESize = OrigData.getSize();