aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bytecode/Writer/WriterPrimitives.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Bytecode/Writer/WriterPrimitives.h b/lib/Bytecode/Writer/WriterPrimitives.h
index 185fac1..e5079e8 100644
--- a/lib/Bytecode/Writer/WriterPrimitives.h
+++ b/lib/Bytecode/Writer/WriterPrimitives.h
@@ -123,17 +123,8 @@ static inline void output(const std::string &s, std::deque<unsigned char> &Out,
}
static inline void output_data(const void *Ptr, const void *End,
- std::deque<unsigned char> &Out,
- bool Align = false) {
-#ifdef ENDIAN_LITTLE
+ std::deque<unsigned char> &Out) {
Out.insert(Out.end(), (const unsigned char*)Ptr, (const unsigned char*)End);
-#else
- const unsigned char *E = (const unsigned char *)End;
- while (Ptr != E)
- Out.push_back(*--E);
-#endif
-
- if (Align) align32(Out);
}
} // End llvm namespace