summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-14 23:03:22 +0000
committerChris Lattner <sabre@nondot.org>2004-01-14 23:03:22 +0000
commitc6098c06d58e0ad80f6ab4b4fe7b7b90d20b1d2d (patch)
tree6eace20906d3aa5f61822ca0aba7a5467c012d00 /llvm
parent369dbe2a090653385afee9c14ed74e91f92d47d7 (diff)
downloadbcm5719-llvm-c6098c06d58e0ad80f6ab4b4fe7b7b90d20b1d2d.tar.gz
bcm5719-llvm-c6098c06d58e0ad80f6ab4b4fe7b7b90d20b1d2d.zip
Like output_data, it's obvious that input_data was only used with 1 character
data. llvm-svn: 10861
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Bytecode/Reader/ReaderPrimitives.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/Bytecode/Reader/ReaderPrimitives.h b/llvm/lib/Bytecode/Reader/ReaderPrimitives.h
index 01cb783d0ea..0b0cf2cb4f5 100644
--- a/llvm/lib/Bytecode/Reader/ReaderPrimitives.h
+++ b/llvm/lib/Bytecode/Reader/ReaderPrimitives.h
@@ -132,20 +132,12 @@ static inline bool read(const unsigned char *&Buf, const unsigned char *EndBuf,
static inline bool input_data(const unsigned char *&Buf,
const unsigned char *EndBuf,
- void *Ptr, void *End, bool Align = false) {
+ void *Ptr, void *End) {
unsigned char *Start = (unsigned char *)Ptr;
unsigned Amount = (unsigned char *)End - Start;
if (Buf+Amount > EndBuf) return true;
-#ifdef ENDIAN_LITTLE
std::copy(Buf, Buf+Amount, Start);
Buf += Amount;
-#else
- unsigned char *E = (unsigned char *)End;
- while (Ptr != E)
- *--E = *Buf++;
-#endif
-
- if (Align) return align32(Buf, EndBuf);
return false;
}
OpenPOWER on IntegriCloud