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
This commit is contained in:
Nick Lewycky
2011-10-11 02:57:48 +00:00
parent a02bfced06
commit 15c3f727ae
2 changed files with 48 additions and 9 deletions

View File

@@ -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,