summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProfReader.cpp
diff options
context:
space:
mode:
authorArtyom Skrobov <Artyom.Skrobov@arm.com>2014-06-14 11:36:01 +0000
committerArtyom Skrobov <Artyom.Skrobov@arm.com>2014-06-14 11:36:01 +0000
commitef5e867f16c9487b9279a26dd70bc34ff871317d (patch)
treed1ed262665b4a17a9a317a235f2d30398eb5e2a4 /llvm/lib/ProfileData/InstrProfReader.cpp
parent06aebc4d69a9ffd5eedb9d76ebb9117335f55eb3 (diff)
downloadbcm5719-llvm-ef5e867f16c9487b9279a26dd70bc34ff871317d.tar.gz
bcm5719-llvm-ef5e867f16c9487b9279a26dd70bc34ff871317d.zip
Renaming SwapByteOrder() to getSwappedBytes()
The next commit will add swapByteOrder(), acting in-place llvm-svn: 210973
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProfReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index c7809b8b8c6..d0493d34c20 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -158,7 +158,7 @@ bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) {
uint64_t Magic =
*reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart());
return getRawMagic<IntPtrT>() == Magic ||
- sys::SwapByteOrder(getRawMagic<IntPtrT>()) == Magic;
+ sys::getSwappedBytes(getRawMagic<IntPtrT>()) == Magic;
}
template <class IntPtrT>
OpenPOWER on IntegriCloud