[llvm] r239555 - [ELF] Introduce getValue() for ELF Symbols.

Davide Italiano davide at freebsd.org
Thu Jun 11 12:59:04 PDT 2015


Author: davide
Date: Thu Jun 11 14:59:04 2015
New Revision: 239555

URL: http://llvm.org/viewvc/llvm-project?rev=239555&view=rev
Log:
[ELF] Introduce getValue() for ELF Symbols.

Differential Revision:	http://reviews.llvm.org/D10328
Reviewed by:	rafael

Modified:
    llvm/trunk/include/llvm/Object/ELFTypes.h

Modified: llvm/trunk/include/llvm/Object/ELFTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELFTypes.h?rev=239555&r1=239554&r2=239555&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELFTypes.h (original)
+++ llvm/trunk/include/llvm/Object/ELFTypes.h Thu Jun 11 14:59:04 2015
@@ -156,11 +156,13 @@ struct Elf_Sym_Impl : Elf_Sym_Base<ELFT>
   using Elf_Sym_Base<ELFT>::st_info;
   using Elf_Sym_Base<ELFT>::st_shndx;
   using Elf_Sym_Base<ELFT>::st_other;
+  using Elf_Sym_Base<ELFT>::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) {





More information about the llvm-commits mailing list