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 /include/llvm-c/Object.h | |
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 'include/llvm-c/Object.h')
-rw-r--r-- | include/llvm-c/Object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm-c/Object.h b/include/llvm-c/Object.h index 92bb03b..6b465b3 100644 --- a/include/llvm-c/Object.h +++ b/include/llvm-c/Object.h @@ -73,11 +73,12 @@ void LLVMMoveToNextRelocation(LLVMRelocationIteratorRef RI); // SymbolRef accessors const char *LLVMGetSymbolName(LLVMSymbolIteratorRef SI); uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI); -uint64_t LLVMGetSymbolOffset(LLVMSymbolIteratorRef SI); +uint64_t LLVMGetSymbolFileOffset(LLVMSymbolIteratorRef SI); uint64_t LLVMGetSymbolSize(LLVMSymbolIteratorRef SI); // RelocationRef accessors uint64_t LLVMGetRelocationAddress(LLVMRelocationIteratorRef RI); +uint64_t LLVMGetRelocationOffset(LLVMRelocationIteratorRef RI); LLVMSymbolIteratorRef LLVMGetRelocationSymbol(LLVMRelocationIteratorRef RI); uint64_t LLVMGetRelocationType(LLVMRelocationIteratorRef RI); // NOTE: Caller takes ownership of returned string of the two |