mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 00:37:49 +00:00
Remove unused SF_ThreadLocal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1cf804de3
commit
19a4033c68
@ -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…
x
Reference in New Issue
Block a user