summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-10 14:57:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-10 14:57:48 +0000
commit6bebee0d5c5b31107d818d783f51b5a6f6e01295 (patch)
tree71ace4a8de0753aef7c284d1e1e33d17ab310e0f /llvm/include
parent92684efb1daa651d8f0b47180ce51a587929b3c3 (diff)
downloadbcm5719-llvm-6bebee0d5c5b31107d818d783f51b5a6f6e01295.tar.gz
bcm5719-llvm-6bebee0d5c5b31107d818d783f51b5a6f6e01295.zip
Move two methods out of line.
llvm-svn: 179176
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Object/MachO.h36
1 files changed, 21 insertions, 15 deletions
diff --git a/llvm/include/llvm/Object/MachO.h b/llvm/include/llvm/Object/MachO.h
index 1b0ca29543a..2eb094af4c4 100644
--- a/llvm/include/llvm/Object/MachO.h
+++ b/llvm/include/llvm/Object/MachO.h
@@ -327,21 +327,8 @@ public:
SymbolTableEntry;
typedef typename MachOObjectFileHelper<is64Bits>::Section Section;
- MachOObjectFile(MemoryBuffer *Object, error_code &ec) :
- MachOObjectFileBase(Object, is64Bits, ec) {
- DataRefImpl DRI;
- moveToNextSection(DRI);
- uint32_t LoadCommandCount = getHeader()->NumLoadCommands;
- while (DRI.d.a < LoadCommandCount) {
- Sections.push_back(DRI);
- DRI.d.b++;
- moveToNextSection(DRI);
- }
- }
-
- static inline bool classof(const Binary *v) {
- return v->getType() == getMachOType(true, is64Bits);
- }
+ MachOObjectFile(MemoryBuffer *Object, error_code &ec);
+ static bool classof(const Binary *v);
const Section *getSection(DataRefImpl DRI) const;
const SymbolTableEntry *getSymbolTableEntry(DataRefImpl DRI) const;
@@ -376,6 +363,25 @@ public:
};
template<bool is64Bits>
+MachOObjectFile<is64Bits>::MachOObjectFile(MemoryBuffer *Object,
+ error_code &ec) :
+ MachOObjectFileBase(Object, is64Bits, ec) {
+ DataRefImpl DRI;
+ moveToNextSection(DRI);
+ uint32_t LoadCommandCount = getHeader()->NumLoadCommands;
+ while (DRI.d.a < LoadCommandCount) {
+ Sections.push_back(DRI);
+ DRI.d.b++;
+ moveToNextSection(DRI);
+ }
+}
+
+template<bool is64Bits>
+bool MachOObjectFile<is64Bits>::classof(const Binary *v) {
+ return v->getType() == getMachOType(true, is64Bits);
+}
+
+template<bool is64Bits>
const typename MachOObjectFile<is64Bits>::Section *
MachOObjectFile<is64Bits>::getSection(DataRefImpl DRI) const {
const SectionBase *Addr = getSectionBase(DRI);
OpenPOWER on IntegriCloud