summaryrefslogtreecommitdiff
path: root/include/llvm-c/Object.h
diff options
context:
space:
mode:
authorDanil Malyshev <dmalyshev@accesssoftek.com>2011-11-29 17:40:10 +0000
committerDanil Malyshev <dmalyshev@accesssoftek.com>2011-11-29 17:40:10 +0000
commitb0436a73054fe676b216a0cf872d1fc433125c62 (patch)
treee563af80f77645faaa3f82c5026a50d46da03047 /include/llvm-c/Object.h
parentf68b214e2d06849091b5ff3dd5d5efe29722dcc3 (diff)
downloadllvm-b0436a73054fe676b216a0cf872d1fc433125c62.tar.gz
llvm-b0436a73054fe676b216a0cf872d1fc433125c62.tar.bz2
llvm-b0436a73054fe676b216a0cf872d1fc433125c62.tar.xz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm-c/Object.h b/include/llvm-c/Object.h
index 92bb03b682..6b465b3ed6 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