[llvm] r179176 - Move two methods out of line.
Rafael Espindola
rafael.espindola at gmail.com
Wed Apr 10 07:57:48 PDT 2013
Author: rafael
Date: Wed Apr 10 09:57:48 2013
New Revision: 179176
URL: http://llvm.org/viewvc/llvm-project?rev=179176&view=rev
Log:
Move two methods out of line.
Modified:
llvm/trunk/include/llvm/Object/MachO.h
Modified: llvm/trunk/include/llvm/Object/MachO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/MachO.h?rev=179176&r1=179175&r2=179176&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/MachO.h (original)
+++ llvm/trunk/include/llvm/Object/MachO.h Wed Apr 10 09:57:48 2013
@@ -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);
More information about the llvm-commits
mailing list