From: Rafael Espindola Date: Wed, 10 Apr 2013 14:57:48 +0000 (+0000) Subject: Move two methods out of line. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bebee0d5c5b31107d818d783f51b5a6f6e01295;p=platform%2Fupstream%2Fllvm.git Move two methods out of line. llvm-svn: 179176 --- diff --git a/llvm/include/llvm/Object/MachO.h b/llvm/include/llvm/Object/MachO.h index 1b0ca29..2eb094a 100644 --- a/llvm/include/llvm/Object/MachO.h +++ b/llvm/include/llvm/Object/MachO.h @@ -327,21 +327,8 @@ public: SymbolTableEntry; typedef typename MachOObjectFileHelper::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 +MachOObjectFile::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 MachOObjectFile::classof(const Binary *v) { + return v->getType() == getMachOType(true, is64Bits); +} + +template const typename MachOObjectFile::Section * MachOObjectFile::getSection(DataRefImpl DRI) const { const SectionBase *Addr = getSectionBase(DRI);