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
This commit is contained in:
Owen Anderson
2011-10-26 20:42:54 +00:00
parent 7b7fa74527
commit 1832f4d94e
2 changed files with 148 additions and 88 deletions

View File

@@ -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;
};
}