mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Fixed ObjectFile functions:
- getSymbolOffset() renamed as getSymbolFileOffset() - getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile. - added getRelocationOffset() - fixed MachOObjectFile::getSymbolSize() - fixed MachOObjectFile::getSymbolSection() - fixed MachOObjectFile::getSymbolOffset() for symbols without section data. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -419,7 +419,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
|
||||
|
||||
// Start at the address of the symbol relative to the section's address.
|
||||
uint64_t Start = 0;
|
||||
Symbols[SymIdx].getOffset(Start);
|
||||
Symbols[SymIdx].getAddress(Start);
|
||||
|
||||
// Stop disassembling either at the beginning of the next symbol or at
|
||||
// the end of the section.
|
||||
@ -432,7 +432,7 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
|
||||
if (NextSymType == SymbolRef::ST_Function) {
|
||||
Sections[SectIdx].containsSymbol(Symbols[NextSymIdx],
|
||||
containsNextSym);
|
||||
Symbols[NextSymIdx].getOffset(NextSym);
|
||||
Symbols[NextSymIdx].getAddress(NextSym);
|
||||
break;
|
||||
}
|
||||
++NextSymIdx;
|
||||
|
Reference in New Issue
Block a user