summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-06 01:24:11 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-06 01:24:11 +0000
commit5cf0f51ae6530751eeeccefa55c87f1d3422d0ae (patch)
tree789f564741fa47813e08a1d1888bb8d541f263b8 /include
parent5044a9395a6f19c37989d877a7cbbe21dd84c5b7 (diff)
downloadllvm-5cf0f51ae6530751eeeccefa55c87f1d3422d0ae.tar.gz
llvm-5cf0f51ae6530751eeeccefa55c87f1d3422d0ae.tar.bz2
llvm-5cf0f51ae6530751eeeccefa55c87f1d3422d0ae.tar.xz
Don't use InMemoryStruct in getRelocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/MachO.h10
1 files changed, 7 insertions, 3 deletions
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<macho::RelocationEntry> &Res) const;
+ const MachOFormat::RelocationEntry *getRelocation(DataRefImpl Rel) const;
std::size_t getSectionIndex(DataRefImpl Sec) const;
- void printRelocationTargetName(InMemoryStruct<macho::RelocationEntry>& RE,
+ void printRelocationTargetName(const MachOFormat::RelocationEntry *RE,
raw_string_ostream &fmt) const;
};