diff options
author | Owen Anderson <resistor@mac.com> | 2011-10-26 20:42:54 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-10-26 20:42:54 +0000 |
commit | 1832f4d94eb292d63824eaa043118ed6cc61389b (patch) | |
tree | 06ba6a92b1b54e7456bbe993b8c29112f5098c96 /include | |
parent | 7b7fa74527997516de1b96f14026c9e2e9a26a50 (diff) | |
download | llvm-1832f4d94eb292d63824eaa043118ed6cc61389b.tar.gz llvm-1832f4d94eb292d63824eaa043118ed6cc61389b.tar.bz2 llvm-1832f4d94eb292d63824eaa043118ed6cc61389b.tar.xz |
Add support for scattered relocations to the MachO relocatation pretty printer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/MachO.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index fc2e10e042..c6454ffeee 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -18,6 +18,7 @@ #include "llvm/Object/ObjectFile.h" #include "llvm/Object/MachOObject.h" #include "llvm/Support/MachO.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/ADT/SmallVector.h" namespace llvm { @@ -110,7 +111,8 @@ private: InMemoryStruct<macho::RelocationEntry> &Res) const; std::size_t getSectionIndex(DataRefImpl Sec) const; - error_code getRelocationTargetName(uint32_t Idx, StringRef &S) const; + void printRelocationTargetName(InMemoryStruct<macho::RelocationEntry>& RE, + raw_string_ostream &fmt) const; }; } |