summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp2
-rw-r--r--llvm/lib/Object/MachOUniversal.cpp2
2 files changed, 2 insertions, 2 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>
diff --git a/llvm/lib/Object/MachOUniversal.cpp b/llvm/lib/Object/MachOUniversal.cpp
index ea4773feeea..f34a3b452f1 100644
--- a/llvm/lib/Object/MachOUniversal.cpp
+++ b/llvm/lib/Object/MachOUniversal.cpp
@@ -24,7 +24,7 @@ using namespace object;
template<typename T>
static void SwapValue(T &Value) {
- Value = sys::SwapByteOrder(Value);
+ Value = sys::getSwappedBytes(Value);
}
template<typename T>
OpenPOWER on IntegriCloud