aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PTHLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-21 07:28:57 +0000
committerChris Lattner <sabre@nondot.org>2009-01-21 07:28:57 +0000
commit6353bebfc2d6d19e15f1b2c673507cdb6985270f (patch)
tree440bef053ff6c73d36a979e430b9edce1defbd2d /lib/Lex/PTHLexer.cpp
parentaff6ef8e7bc3c3739f984c390e0af693e60be064 (diff)
really we only need on Read24!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r--lib/Lex/PTHLexer.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp
index a341288b65..494cea50e6 100644
--- a/lib/Lex/PTHLexer.cpp
+++ b/lib/Lex/PTHLexer.cpp
@@ -66,22 +66,6 @@ static inline uint32_t Read24(const unsigned char *&Data) {
return V;
}
-static inline uint32_t Read24(const unsigned char *&Data) {
-// Targets that directly support unaligned little-endian 16-bit loads can just
-// use them.
-#if defined(__i386__) || defined(__x86_64__)
- uint32_t V = ((uint16_t*)Data)[0] |
- ((uint32_t)Data[2] << 16);
-#else
- uint32_t V = ((uint32_t)Data[0] << 0) |
- ((uint32_t)Data[1] << 8) |
- ((uint32_t)Data[2] << 16);
-#endif
-
- Data += 3;
- return V;
-}
-
static inline uint32_t Read32(const unsigned char *&Data) {
// Targets that directly support unaligned little-endian 32-bit loads can just
// use them.