[llvm] r174682 - [Object][ELF] Add a way to get the dynamic symbol table section.

Michael J. Spencer bigcheesegs at gmail.com
Thu Feb 7 15:37:59 PST 2013


Author: mspencer
Date: Thu Feb  7 17:37:58 2013
New Revision: 174682

URL: http://llvm.org/viewvc/llvm-project?rev=174682&view=rev
Log:
[Object][ELF] Add a way to get the dynamic symbol table section.

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

Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=174682&r1=174681&r2=174682&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Thu Feb  7 17:37:58 2013
@@ -702,6 +702,10 @@ public:
   virtual library_iterator begin_libraries_needed() const;
   virtual library_iterator end_libraries_needed() const;
 
+  const Elf_Shdr *getDynamicSymbolTableSectionHeader() const {
+    return SymbolTableSections[0];
+  }
+
   Elf_Dyn_iterator begin_dynamic_table() const;
   Elf_Dyn_iterator end_dynamic_table() const;
 





More information about the llvm-commits mailing list