summaryrefslogtreecommitdiff
path: root/include/llvm-c
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 /include/llvm-c
parent2eb5a744b18d429928751b06e205cbb88f668ae7 (diff)
downloadllvm-9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a.tar.gz
llvm-9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a.tar.bz2
llvm-9b24738bd1dc791eb2c21b5562fcfe4b7b99fe2a.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@145180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-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