[llvm-commits] CVS: llvm/lib/Bytecode/Writer/WriterPrimitives.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 14 12:42:01 PST 2004
Changes in directory llvm/lib/Bytecode/Writer:
WriterPrimitives.h updated: 1.1 -> 1.2
---
Log message:
Be const correct
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Bytecode/Writer/WriterPrimitives.h
diff -u llvm/lib/Bytecode/Writer/WriterPrimitives.h:1.1 llvm/lib/Bytecode/Writer/WriterPrimitives.h:1.2
--- llvm/lib/Bytecode/Writer/WriterPrimitives.h:1.1 Sat Jan 10 12:56:59 2004
+++ llvm/lib/Bytecode/Writer/WriterPrimitives.h Wed Jan 14 12:41:38 2004
@@ -122,13 +122,13 @@
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
More information about the llvm-commits
mailing list