mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
[Object] Add symbol attribute flags: ST_ThreadLocal, ST_Common, and ST_Undefined. Implement these completely for ELF.
Rename ST_External to ST_Unknown, and slightly change its semantics. It now only indicates that the symbol's type is unknown, not that the symbol is undefined. (For that, use ST_Undefined). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151696 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -180,9 +180,9 @@ public:
|
||||
}
|
||||
|
||||
enum Type {
|
||||
ST_Unknown, // Type not specified
|
||||
ST_Data,
|
||||
ST_Debug,
|
||||
ST_External, // Defined in another object file
|
||||
ST_File,
|
||||
ST_Function,
|
||||
ST_Other
|
||||
@ -190,11 +190,14 @@ public:
|
||||
|
||||
enum Flags {
|
||||
SF_None = 0,
|
||||
SF_Global = 1 << 0, // Global symbol
|
||||
SF_Weak = 1 << 1, // Weak symbol
|
||||
SF_Absolute = 1 << 2, // Absolute symbol
|
||||
SF_FormatSpecific = 1 << 3 // Specific to the object file format
|
||||
// (e.g. section symbols)
|
||||
SF_Undefined = 1U << 0, // Symbol is defined in another object file
|
||||
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
|
||||
// (e.g. section symbols)
|
||||
};
|
||||
|
||||
SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
|
||||
|
Reference in New Issue
Block a user