diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-15 06:11:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-15 06:11:30 +0000 |
commit | 1af644d9d6e2d7f3073d021aa2578966cc139e86 (patch) | |
tree | e0de8c709cee07c8ebf593053d79f40cb53be43e /llvm/lib/Bytecode | |
parent | 604d5f36fe8bdbe16c1b3f52c6137ef179ebdcd3 (diff) | |
download | bcm5719-llvm-1af644d9d6e2d7f3073d021aa2578966cc139e86.tar.gz bcm5719-llvm-1af644d9d6e2d7f3073d021aa2578966cc139e86.zip |
Remove the optimization that depends on ENDIAN_LITTLE: it's not worth it.
llvm-svn: 10870
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Writer/WriterPrimitives.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Bytecode/Writer/WriterPrimitives.h b/llvm/lib/Bytecode/Writer/WriterPrimitives.h index e5079e8bb94..5bb01665185 100644 --- a/llvm/lib/Bytecode/Writer/WriterPrimitives.h +++ b/llvm/lib/Bytecode/Writer/WriterPrimitives.h @@ -27,13 +27,6 @@ namespace llvm { // static inline void output(unsigned i, std::deque<unsigned char> &Out, int pos = -1) { -#ifdef ENDIAN_LITTLE - if (pos == -1) - Out.insert(Out.end(), (unsigned char*)&i, (unsigned char*)&i+4); - else - // This cannot use block copy because deques are not guaranteed contiguous! - std::copy((unsigned char*)&i, 4+(unsigned char*)&i, Out.begin()+pos); -#else if (pos == -1) { // Be endian clean, little endian is our friend Out.push_back((unsigned char)i); Out.push_back((unsigned char)(i >> 8)); @@ -45,7 +38,6 @@ static inline void output(unsigned i, std::deque<unsigned char> &Out, Out[pos+2] = (unsigned char)(i >> 16); Out[pos+3] = (unsigned char)(i >> 24); } -#endif } static inline void output(int i, std::deque<unsigned char> &Out) { |