diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-14 18:41:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-14 18:41:38 +0000 |
commit | 44e38034d5a36d39f9d820df445a7b5e0e15c223 (patch) | |
tree | ed278e937ff4559c8c656422a10df38d26759d3f /lib/Bytecode | |
parent | 7aa162b29b374ed112431e93e8630beb27c5429a (diff) |
Be const correct
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Writer/WriterPrimitives.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bytecode/Writer/WriterPrimitives.h b/lib/Bytecode/Writer/WriterPrimitives.h index b782c1829b..185fac1d03 100644 --- a/lib/Bytecode/Writer/WriterPrimitives.h +++ b/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 |