summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-14 18:41:38 +0000
committerChris Lattner <sabre@nondot.org>2004-01-14 18:41:38 +0000
commit29f9590e82e569c24b064a721661493cf0bc597d (patch)
tree1c1659e97798357e0ca96b25ddf089de4bc01800 /llvm/lib/Bytecode
parente8701f690ffbd20f1cad2c4b1f703f488663dc4a (diff)
downloadbcm5719-llvm-29f9590e82e569c24b064a721661493cf0bc597d.tar.gz
bcm5719-llvm-29f9590e82e569c24b064a721661493cf0bc597d.zip
Be const correct
llvm-svn: 10856
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Writer/WriterPrimitives.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Writer/WriterPrimitives.h b/llvm/lib/Bytecode/Writer/WriterPrimitives.h
index b782c1829b5..185fac1d036 100644
--- a/llvm/lib/Bytecode/Writer/WriterPrimitives.h
+++ b/llvm/lib/Bytecode/Writer/WriterPrimitives.h
@@ -122,13 +122,13 @@ static inline void output(const std::string &s, std::deque<unsigned char> &Out,
align32(Out); // Make sure we are now aligned...
}
-static inline void output_data(void *Ptr, void *End,
+static inline void output_data(const void *Ptr, const void *End,
std::deque<unsigned char> &Out,
bool Align = false) {
#ifdef ENDIAN_LITTLE
- Out.insert(Out.end(), (unsigned char*)Ptr, (unsigned char*)End);
+ Out.insert(Out.end(), (const unsigned char*)Ptr, (const unsigned char*)End);
#else
- unsigned char *E = (unsigned char *)End;
+ const unsigned char *E = (const unsigned char *)End;
while (Ptr != E)
Out.push_back(*--E);
#endif
OpenPOWER on IntegriCloud