diff options
author | David Meyer <pdox@google.com> | 2012-02-29 02:11:55 +0000 |
---|---|---|
committer | David Meyer <pdox@google.com> | 2012-02-29 02:11:55 +0000 |
commit | 2c67727046234ad9702ab5acb72700b5ac99a676 (patch) | |
tree | 8dccb4673583b529cf8ca2a898407105b5c01f91 /include/llvm/Object/ObjectFile.h | |
parent | 37c02bce277078902924af897736d87bb0b106a0 (diff) |
[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
Diffstat (limited to 'include/llvm/Object/ObjectFile.h')
-rw-r--r-- | include/llvm/Object/ObjectFile.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index 284577c945..56d8c249c7 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -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); |