aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-14 18:50:28 +0000
committerChris Lattner <sabre@nondot.org>2004-01-14 18:50:28 +0000
commit0a3a27b0ae83b8d0e34c7da2bd3760bdb9393581 (patch)
treecd168c5b0214dd56e53256685309de7235f99116 /lib/Bytecode
parent44e38034d5a36d39f9d820df445a7b5e0e15c223 (diff)
downloadexternal_llvm-0a3a27b0ae83b8d0e34c7da2bd3760bdb9393581.zip
external_llvm-0a3a27b0ae83b8d0e34c7da2bd3760bdb9393581.tar.gz
external_llvm-0a3a27b0ae83b8d0e34c7da2bd3760bdb9393581.tar.bz2
It is obvious that this has never been used for outputing more than a single
byte, it's totally endian incorrect! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-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