diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-11 02:57:48 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-11 02:57:48 +0000 |
commit | 15c3f727aeff6a80e3f9e7e6b1284748e5f3322a (patch) | |
tree | 02d175d144594f554ff925e49af61f15385c2a76 /include/llvm/Object/ObjectFile.h | |
parent | a02bfced06b4cc700e50bc497cc42667653f091a (diff) |
Add support for .symtab_shnidx. Unfortunately, doing this required breaking a
layer of abstraction around SymbolRef where you can read its private
SymbolPimpl member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/ObjectFile.h')
-rw-r--r-- | include/llvm/Object/ObjectFile.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index 84ef8632cd..83854a0d6c 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -120,6 +120,8 @@ public: /// Returns true for symbols that can be used in another objects, /// such as library functions error_code isGlobal(bool &Result) const; + + DataRefImpl getRawDataRefImpl() const; }; typedef content_iterator<SymbolRef> symbol_iterator; @@ -345,6 +347,10 @@ inline error_code SymbolRef::getSymbolType(SymbolRef::SymbolType &Result) const return OwningObject->getSymbolType(SymbolPimpl, Result); } +inline DataRefImpl SymbolRef::getRawDataRefImpl() const { + return SymbolPimpl; +} + /// SectionRef inline SectionRef::SectionRef(DataRefImpl SectionP, |