It is obvious that this has never been used for outputing more than a single
authorChris Lattner <sabre@nondot.org>
Wed, 14 Jan 2004 18:50:28 +0000 (18:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Jan 2004 18:50:28 +0000 (18:50 +0000)
byte, it's totally endian incorrect!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10857 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/WriterPrimitives.h

index 185fac1d0369a6db4c70f378f49a77464f25737a..e5079e8bb945ae6cbc619e9e3cf43ff39b66897c 100644 (file)
@@ -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