summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer
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
commiteeb4ffd8eadd4b634b8416afb36d7bcf6eaa4ec6 (patch)
tree1a0e96ccd74a7e436e8e5e7ba01196d698d01235 /llvm/lib/Bytecode/Writer
parent29f9590e82e569c24b064a721661493cf0bc597d (diff)
downloadbcm5719-llvm-eeb4ffd8eadd4b634b8416afb36d7bcf6eaa4ec6.tar.gz
bcm5719-llvm-eeb4ffd8eadd4b634b8416afb36d7bcf6eaa4ec6.zip
It is obvious that this has never been used for outputing more than a single
byte, it's totally endian incorrect! llvm-svn: 10857
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r--llvm/lib/Bytecode/Writer/WriterPrimitives.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Bytecode/Writer/WriterPrimitives.h b/llvm/lib/Bytecode/Writer/WriterPrimitives.h
index 185fac1d036..e5079e8bb94 100644
--- a/llvm/lib/Bytecode/Writer/WriterPrimitives.h
+++ b/llvm/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
OpenPOWER on IntegriCloud