mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Fix a nomenclature error in llvm-nm.
What llvm-nm prints depends on the file format. On ELF for example, if the file is relocatable, it prints offsets. If it is not, it prints addresses. Since it doesn't really need to care what it is that it is printing, use the generic term value. Fix or implement getSymbolValue to keep llvm-nm working. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -633,7 +633,8 @@ MachOObjectFile::getSymbolSection(DataRefImpl Symb,
|
||||
|
||||
error_code MachOObjectFile::getSymbolValue(DataRefImpl Symb,
|
||||
uint64_t &Val) const {
|
||||
report_fatal_error("getSymbolValue unimplemented in MachOObjectFile");
|
||||
// In MachO both relocatable and non-relocatable objects have addresses.
|
||||
return getSymbolAddress(Symb, Val);
|
||||
}
|
||||
|
||||
void MachOObjectFile::moveSectionNext(DataRefImpl &Sec) const {
|
||||
|
Reference in New Issue
Block a user