summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index e61422885ba..18f5cc057ac 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -45,7 +45,7 @@ struct section_base {
template<typename T>
static void SwapValue(T &Value) {
- Value = sys::SwapByteOrder(Value);
+ Value = sys::getSwappedBytes(Value);
}
template<typename T>
OpenPOWER on IntegriCloud