diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-04-04 18:15:38 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-04-04 18:15:38 +0000 |
| commit | dd418073928fa69d3a2687677a4eb456ad9f00dc (patch) | |
| tree | 4bc07b976289ec6162e687890316ddd7f776d358 | |
| parent | 86f783e31532767b05467e7c902ae4a029d2c68a (diff) | |
| download | bcm5719-llvm-dd418073928fa69d3a2687677a4eb456ad9f00dc.tar.gz bcm5719-llvm-dd418073928fa69d3a2687677a4eb456ad9f00dc.zip | |
Add comments.
llvm-svn: 265320
| -rw-r--r-- | lld/ELF/Symbols.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 0b64cc8673b..eaaa5fd7146 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -152,9 +152,11 @@ public: // symbol or if the symbol should point to its plt entry. unsigned NeedsCopyOrPltAddr : 1; - uint8_t Type; - uint8_t Binding; - uint8_t Other; + // The following fields have the same meaning as the ELF symbol attributes. + uint8_t Type; // symbol type + uint8_t Binding; // symbol binding + uint8_t Other; // st_other field value + bool isSection() const { return Type == llvm::ELF::STT_SECTION; } bool isTls() const { return Type == llvm::ELF::STT_TLS; } bool isFunc() const { return Type == llvm::ELF::STT_FUNC; } |

