diff options
author | Danil Malyshev <dmalyshev@accesssoftek.com> | 2011-11-29 17:40:10 +0000 |
---|---|---|
committer | Danil Malyshev <dmalyshev@accesssoftek.com> | 2011-11-29 17:40:10 +0000 |
commit | b0436a73054fe676b216a0cf872d1fc433125c62 (patch) | |
tree | e563af80f77645faaa3f82c5026a50d46da03047 /tools/llvm-nm | |
parent | f68b214e2d06849091b5ff3dd5d5efe29722dcc3 (diff) | |
download | external_llvm-b0436a73054fe676b216a0cf872d1fc433125c62.zip external_llvm-b0436a73054fe676b216a0cf872d1fc433125c62.tar.gz external_llvm-b0436a73054fe676b216a0cf872d1fc433125c62.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@145408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-nm')
-rw-r--r-- | tools/llvm-nm/llvm-nm.cpp | 2 |
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..35e2710 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->getAddress(s.Address))) break; if (error(i->getNMTypeChar(s.TypeChar))) break; if (error(i->getName(s.Name))) break; SymbolList.push_back(s); |