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 /tools/llvm-objdump | |
parent | 37c02bce277078902924af897736d87bb0b106a0 (diff) | |
download | external_llvm-2c67727046234ad9702ab5acb72700b5ac99a676.zip external_llvm-2c67727046234ad9702ab5acb72700b5ac99a676.tar.gz external_llvm-2c67727046234ad9702ab5acb72700b5ac99a676.tar.bz2 |
[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 'tools/llvm-objdump')
-rw-r--r-- | tools/llvm-objdump/llvm-objdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 1414767..e848d6b 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -502,7 +502,7 @@ static void PrintSymbolTable(const ObjectFile *o) { if (Size == UnknownAddressOrSize) Size = 0; char GlobLoc = ' '; - if (Type != SymbolRef::ST_External) + if (Type != SymbolRef::ST_Unknown) GlobLoc = Global ? 'g' : 'l'; char Debug = (Type == SymbolRef::ST_Debug || Type == SymbolRef::ST_File) ? 'd' : ' '; |