aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-06 01:59:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-06 01:59:05 +0000
commit00555c13be54b7933cf5a68b50f8a7494bcd5777 (patch)
tree5f26be85110d782f980f6ca6dcc48f30a5480467 /include/llvm/Object
parent5cf0f51ae6530751eeeccefa55c87f1d3422d0ae (diff)
downloadexternal_llvm-00555c13be54b7933cf5a68b50f8a7494bcd5777.zip
external_llvm-00555c13be54b7933cf5a68b50f8a7494bcd5777.tar.gz
external_llvm-00555c13be54b7933cf5a68b50f8a7494bcd5777.tar.bz2
Don't use InMemoryStruct in getSymbolTableEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r--include/llvm/Object/MachO.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h
index 668b5a6..70d7f6e 100644
--- a/include/llvm/Object/MachO.h
+++ b/include/llvm/Object/MachO.h
@@ -60,6 +60,15 @@ namespace MachOFormat {
support::ulittle32_t Word0;
support::ulittle32_t Word1;
};
+
+ struct SymbolTableEntry {
+ support::ulittle32_t StringIndex;
+ uint8_t Type;
+ uint8_t SectionIndex;
+ support::ulittle16_t Flags;
+ support::ulittle32_t Value;
+ };
+
}
typedef MachOObject::LoadCommandInfo LoadCommandInfo;
@@ -159,8 +168,8 @@ private:
void moveToNextSection(DataRefImpl &DRI) const;
- void getSymbolTableEntry(DataRefImpl DRI,
- InMemoryStruct<macho::SymbolTableEntry> &Res) const;
+ const MachOFormat::SymbolTableEntry *
+ getSymbolTableEntry(DataRefImpl DRI) const;
void getSymbol64TableEntry(DataRefImpl DRI,
InMemoryStruct<macho::Symbol64TableEntry> &Res) const;
void moveToNextSymbol(DataRefImpl &DRI) const;