From 5cf0f51ae6530751eeeccefa55c87f1d3422d0ae Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 6 Apr 2013 01:24:11 +0000 Subject: Don't use InMemoryStruct in getRelocation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178943 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/MachO.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index badd4401e7..668b5a6b21 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -55,6 +55,11 @@ namespace MachOFormat { support::ulittle32_t Reserved2; support::ulittle32_t Reserved3; }; + + struct RelocationEntry { + support::ulittle32_t Word0; + support::ulittle32_t Word1; + }; } typedef MachOObject::LoadCommandInfo LoadCommandInfo; @@ -161,11 +166,10 @@ private: void moveToNextSymbol(DataRefImpl &DRI) const; const MachOFormat::Section *getSection(DataRefImpl DRI) const; const MachOFormat::Section64 *getSection64(DataRefImpl DRI) const; - void getRelocation(DataRefImpl Rel, - InMemoryStruct &Res) const; + const MachOFormat::RelocationEntry *getRelocation(DataRefImpl Rel) const; std::size_t getSectionIndex(DataRefImpl Sec) const; - void printRelocationTargetName(InMemoryStruct& RE, + void printRelocationTargetName(const MachOFormat::RelocationEntry *RE, raw_string_ostream &fmt) const; }; -- cgit v1.2.3-70-g09d2