mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Remove unused SF_ThreadLocal.
llvm-svn: 200800
This commit is contained in:
parent
ea650dd10e
commit
c79be3484e
@ -404,9 +404,6 @@ uint32_t ELFObjectFile<ELFT>::getSymbolFlags(DataRefImpl Symb) const {
|
||||
EF.getSymbolTableIndex(ESym) == ELF::SHN_COMMON)
|
||||
Result |= SymbolRef::SF_Common;
|
||||
|
||||
if (ESym->getType() == ELF::STT_TLS)
|
||||
Result |= SymbolRef::SF_ThreadLocal;
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
@ -195,9 +195,8 @@ public:
|
||||
SF_Global = 1U << 1, // Global symbol
|
||||
SF_Weak = 1U << 2, // Weak symbol
|
||||
SF_Absolute = 1U << 3, // Absolute symbol
|
||||
SF_ThreadLocal = 1U << 4, // Thread local symbol
|
||||
SF_Common = 1U << 5, // Symbol has common linkage
|
||||
SF_FormatSpecific = 1U << 31 // Specific to the object file format
|
||||
SF_Common = 1U << 4, // Symbol has common linkage
|
||||
SF_FormatSpecific = 1U << 5 // Specific to the object file format
|
||||
// (e.g. section symbols)
|
||||
};
|
||||
|
||||
|
@ -159,7 +159,7 @@ uint32_t COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const {
|
||||
const coff_symbol *Symb = toSymb(Ref);
|
||||
uint32_t Result = SymbolRef::SF_None;
|
||||
|
||||
// TODO: Correctly set SF_FormatSpecific, SF_ThreadLocal, SF_Common
|
||||
// TODO: Correctly set SF_FormatSpecific, SF_Common
|
||||
|
||||
if (Symb->StorageClass == COFF::IMAGE_SYM_CLASS_EXTERNAL &&
|
||||
Symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED)
|
||||
|
@ -578,7 +578,6 @@ uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const {
|
||||
uint8_t MachOType = Entry.n_type;
|
||||
uint16_t MachOFlags = Entry.n_desc;
|
||||
|
||||
// TODO: Correctly set SF_ThreadLocal
|
||||
uint32_t Result = SymbolRef::SF_None;
|
||||
|
||||
if ((MachOType & MachO::N_TYPE) == MachO::N_UNDF)
|
||||
|
Loading…
Reference in New Issue
Block a user