aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/ReaderPrimitives.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Bytecode/Reader/ReaderPrimitives.h b/lib/Bytecode/Reader/ReaderPrimitives.h
index 01cb783d0e..0b0cf2cb4f 100644
--- a/lib/Bytecode/Reader/ReaderPrimitives.h
+++ b/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;
}