From: Davide Italiano Date: Thu, 11 Jun 2015 19:59:04 +0000 (+0000) Subject: [ELF] Introduce getValue() for ELF Symbols. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=5a78f2db3855510884be5fc1ae789712a54b808b [ELF] Introduce getValue() for ELF Symbols. Differential Revision: http://reviews.llvm.org/D10328 Reviewed by: rafael git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239555 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Object/ELFTypes.h b/include/llvm/Object/ELFTypes.h index 3f323b5b820..15c792f682b 100644 --- a/include/llvm/Object/ELFTypes.h +++ b/include/llvm/Object/ELFTypes.h @@ -156,11 +156,13 @@ struct Elf_Sym_Impl : Elf_Sym_Base { using Elf_Sym_Base::st_info; using Elf_Sym_Base::st_shndx; using Elf_Sym_Base::st_other; + using Elf_Sym_Base::st_value; // These accessors and mutators correspond to the ELF32_ST_BIND, // ELF32_ST_TYPE, and ELF32_ST_INFO macros defined in the ELF specification: unsigned char getBinding() const { return st_info >> 4; } unsigned char getType() const { return st_info & 0x0f; } + uint64_t getValue() const { return st_value; } void setBinding(unsigned char b) { setBindingAndType(b, getType()); } void setType(unsigned char t) { setBindingAndType(getBinding(), t); } void setBindingAndType(unsigned char b, unsigned char t) {