[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReaderInternals.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Oct 30 12:35:01 PST 2003


Changes in directory llvm/lib/Bytecode/Reader:

ReaderInternals.h updated: 1.61 -> 1.62

---
Log message:

Put DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the code
inside DEBUG_OUTPUT so that it compiles.


---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/Bytecode/Reader/ReaderInternals.h
diff -u llvm/lib/Bytecode/Reader/ReaderInternals.h:1.61 llvm/lib/Bytecode/Reader/ReaderInternals.h:1.62
--- llvm/lib/Bytecode/Reader/ReaderInternals.h:1.61	Tue Oct 21 10:17:12 2003
+++ llvm/lib/Bytecode/Reader/ReaderInternals.h	Thu Oct 30 12:33:58 2003
@@ -24,6 +24,7 @@
 
 // Enable to trace to figure out what the heck is going on when parsing fails
 //#define TRACE_LEVEL 10
+//#define DEBUG_OUTPUT
 
 #if TRACE_LEVEL    // ByteCodeReading_TRACEr
 #define BCR_TRACE(n, X) \
@@ -215,10 +216,10 @@
 static inline void readBlock(const unsigned char *&Buf,
                              const unsigned char *EndBuf, 
                              unsigned &Type, unsigned &Size) {
-#if DEBUG_OUTPUT
+#ifdef DEBUG_OUTPUT
   bool Result = read(Buf, EndBuf, Type) || read(Buf, EndBuf, Size);
   std::cerr << "StartLoc = " << ((unsigned)Buf & 4095)
-       << " Type = " << Type << " Size = " << Size << endl;
+       << " Type = " << Type << " Size = " << Size << std::endl;
   if (Result) throw Error_read;
 #else
   if (read(Buf, EndBuf, Type) || read(Buf, EndBuf, Size)) throw Error_read;





More information about the llvm-commits mailing list