summaryrefslogtreecommitdiff
path: root/include/llvm/Object/Binary.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-18 18:08:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-18 18:08:55 +0000
commitfd7aa38e304a09fa0ef51b85b773b649b7e58c5e (patch)
treeb60cff57cb597e0d649f4d382bd8274cf7a90bd8 /include/llvm/Object/Binary.h
parent77327fd652e184c413744eabec8d9fdd605d09c1 (diff)
downloadllvm-fd7aa38e304a09fa0ef51b85b773b649b7e58c5e.tar.gz
llvm-fd7aa38e304a09fa0ef51b85b773b649b7e58c5e.tar.bz2
llvm-fd7aa38e304a09fa0ef51b85b773b649b7e58c5e.tar.xz
At Jim Grosbach's request detemplate Object/MachO.h.
We are still able to handle mixed endian objects by swapping one struct at a time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/Binary.h')
-rw-r--r--include/llvm/Object/Binary.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h
index ac5bfed4bf..78fcf6feb8 100644
--- a/include/llvm/Object/Binary.h
+++ b/include/llvm/Object/Binary.h
@@ -100,7 +100,8 @@ public:
}
bool isLittleEndian() const {
- return !(TypeID == ID_ELF32B || TypeID == ID_ELF64B);
+ return !(TypeID == ID_ELF32B || TypeID == ID_ELF64B ||
+ TypeID == ID_MachO32B || TypeID == ID_MachO64B);
}
};