aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-nm
diff options
context:
space:
mode:
authorDanil Malyshev <dmalyshev@accesssoftek.com>2011-11-27 10:12:52 +0000
committerDanil Malyshev <dmalyshev@accesssoftek.com>2011-11-27 10:12:52 +0000
commit9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a (patch)
tree0b6229146897c4132df67e8ea79605ba3a4a0885 /tools/llvm-nm
parent2eb5a744b18d429928751b06e205cbb88f668ae7 (diff)
downloadexternal_llvm-9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a.zip
external_llvm-9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a.tar.gz
external_llvm-9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a.tar.bz2
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@145180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-nm')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index e79d72d..2544215 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -286,7 +286,7 @@ static void DumpSymbolNamesFromObject(ObjectFile *obj) {
if (error(i->getSize(s.Size))) break;
}
if (PrintAddress)
- if (error(i->getOffset(s.Address))) break;
+ if (error(i->getFileOffset(s.Address))) break;
if (error(i->getNMTypeChar(s.TypeChar))) break;
if (error(i->getName(s.Name))) break;
SymbolList.push_back(s);