mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +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:
@ -322,14 +322,6 @@ bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const {
|
||||
return Sec->PointerToRawData == 0;
|
||||
}
|
||||
|
||||
bool COFFObjectFile::sectionContainsSymbol(DataRefImpl SecRef,
|
||||
DataRefImpl SymbRef) const {
|
||||
const coff_section *Sec = toSec(SecRef);
|
||||
COFFSymbolRef Symb = getCOFFSymbol(SymbRef);
|
||||
int32_t SecNumber = (Sec - SectionTable) + 1;
|
||||
return SecNumber == Symb.getSectionNumber();
|
||||
}
|
||||
|
||||
static uint32_t getNumberOfRelocations(const coff_section *Sec,
|
||||
MemoryBufferRef M, const uint8_t *base) {
|
||||
// The field for the number of relocations in COFF section table is only
|
||||
|
Reference in New Issue
Block a user