summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-03-28 20:32:17 +0000
committerJustin Bogner <mail@justinbogner.com>2014-03-28 20:32:17 +0000
commita0dafb77eb3baf6404a1081f963ecf9b05b3a9e1 (patch)
tree9b7a763532d7b843815db1fe260852528821440b /clang/lib/Serialization/GlobalModuleIndex.cpp
parentd42773bcc8fc3cd44f6eaa1100928045a3c07bc1 (diff)
downloadbcm5719-llvm-a0dafb77eb3baf6404a1081f963ecf9b05b3a9e1.tar.gz
bcm5719-llvm-a0dafb77eb3baf6404a1081f963ecf9b05b3a9e1.zip
Revert "OnDiskHashTable: Use Endian.h to read little endian ostreams"
This reverts commit r205045. llvm-svn: 205048
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r--clang/lib/Serialization/GlobalModuleIndex.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index ada02efc3f8..b9e6130bad8 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -82,9 +82,9 @@ public:
static std::pair<unsigned, unsigned>
ReadKeyDataLength(const unsigned char*& d) {
- using namespace llvm::support;
- unsigned KeyLen = endian::readNext<uint16_t, little, unaligned>(d);
- unsigned DataLen = endian::readNext<uint16_t, little, unaligned>(d);
+ using namespace clang::io;
+ unsigned KeyLen = ReadUnalignedLE16(d);
+ unsigned DataLen = ReadUnalignedLE16(d);
return std::make_pair(KeyLen, DataLen);
}
@@ -101,11 +101,11 @@ public:
static data_type ReadData(const internal_key_type& k,
const unsigned char* d,
unsigned DataLen) {
- using namespace llvm::support;
+ using namespace clang::io;
data_type Result;
while (DataLen > 0) {
- unsigned ID = endian::readNext<uint32_t, little, unaligned>(d);
+ unsigned ID = ReadUnalignedLE32(d);
Result.push_back(ID);
DataLen -= 4;
}
@@ -459,8 +459,8 @@ namespace {
unsigned DataLen) {
// The first bit indicates whether this identifier is interesting.
// That's all we care about.
- using namespace llvm::support;
- unsigned RawID = endian::readNext<uint32_t, little, unaligned>(d);
+ using namespace clang::io;
+ unsigned RawID = ReadUnalignedLE32(d);
bool IsInteresting = RawID & 0x01;
return std::make_pair(k, IsInteresting);
}
OpenPOWER on IntegriCloud