diff options
author | Owen Anderson <resistor@mac.com> | 2011-10-27 17:32:36 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-10-27 17:32:36 +0000 |
commit | f7a89d06ecec2fc80d29b3478d397d6285e00986 (patch) | |
tree | 4e170fc00ff89b5e9d1e3765d6f676f63e4615fa /llvm/include/llvm-c | |
parent | ba7f90c7df7a5e58cfebb114418ab6a7d4847b33 (diff) | |
download | bcm5719-llvm-f7a89d06ecec2fc80d29b3478d397d6285e00986.tar.gz bcm5719-llvm-f7a89d06ecec2fc80d29b3478d397d6285e00986.zip |
Expose relocation accessors through the libObject C API.
llvm-svn: 143109
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/Object.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Object.h b/llvm/include/llvm-c/Object.h index ccf62868cf2..92bb03b6825 100644 --- a/llvm/include/llvm-c/Object.h +++ b/llvm/include/llvm-c/Object.h @@ -76,6 +76,16 @@ uint64_t LLVMGetSymbolAddress(LLVMSymbolIteratorRef SI); uint64_t LLVMGetSymbolOffset(LLVMSymbolIteratorRef SI); uint64_t LLVMGetSymbolSize(LLVMSymbolIteratorRef SI); +// RelocationRef accessors +uint64_t LLVMGetRelocationAddress(LLVMRelocationIteratorRef RI); +LLVMSymbolIteratorRef LLVMGetRelocationSymbol(LLVMRelocationIteratorRef RI); +uint64_t LLVMGetRelocationType(LLVMRelocationIteratorRef RI); +// NOTE: Caller takes ownership of returned string of the two +// following functions. +const char *LLVMGetRelocationTypeName(LLVMRelocationIteratorRef RI); +const char *LLVMGetRelocationValueString(LLVMRelocationIteratorRef RI); + + #ifdef __cplusplus } |