mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Implement containsSymbol with other lower level methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241112 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -28,6 +28,13 @@ void ObjectFile::anchor() { }
|
||||
ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source)
|
||||
: SymbolicFile(Type, Source) {}
|
||||
|
||||
bool SectionRef::containsSymbol(SymbolRef S) const {
|
||||
section_iterator SymSec = getObject()->section_end();
|
||||
if (S.getSection(SymSec))
|
||||
return false;
|
||||
return *this == *SymSec;
|
||||
}
|
||||
|
||||
std::error_code ObjectFile::printSymbolName(raw_ostream &OS,
|
||||
DataRefImpl Symb) const {
|
||||
StringRef Name;
|
||||
|
Reference in New Issue
Block a user