aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-10-27 17:32:36 +0000
committerOwen Anderson <resistor@mac.com>2011-10-27 17:32:36 +0000
commit3529c53d2f07bb283e990d1678962f1b5eba9ba4 (patch)
tree60781d26b7a87e4c170156f2d1d061bc178aae00 /include
parent036a67d670413f8116415b87457f22d256f314ae (diff)
downloadexternal_llvm-3529c53d2f07bb283e990d1678962f1b5eba9ba4.zip
external_llvm-3529c53d2f07bb283e990d1678962f1b5eba9ba4.tar.gz
external_llvm-3529c53d2f07bb283e990d1678962f1b5eba9ba4.tar.bz2
Expose relocation accessors through the libObject C API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm-c/Object.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm-c/Object.h b/include/llvm-c/Object.h
index ccf6286..92bb03b 100644
--- a/include/llvm-c/Object.h
+++ b/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
}