diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2003-10-30 18:33:58 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2003-10-30 18:33:58 +0000 |
commit | 404beb98ef8ef5bdc0fdf880abd501a38c688378 (patch) | |
tree | c77e2c84713bb9607e0f9b5e9f11fa4ab01ebe3a /llvm/lib/Bytecode | |
parent | b45e1f990cd5981b4b9c4cfece8b7e2993815b00 (diff) | |
download | bcm5719-llvm-404beb98ef8ef5bdc0fdf880abd501a38c688378.tar.gz bcm5719-llvm-404beb98ef8ef5bdc0fdf880abd501a38c688378.zip |
Put DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the code
inside DEBUG_OUTPUT so that it compiles.
llvm-svn: 9614
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Reader/ReaderInternals.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/ReaderInternals.h b/llvm/lib/Bytecode/Reader/ReaderInternals.h index 8eb138a1678..79c5a0d9a63 100644 --- a/llvm/lib/Bytecode/Reader/ReaderInternals.h +++ b/llvm/lib/Bytecode/Reader/ReaderInternals.h @@ -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 const std::string Error_DestSlot = "No destination slot found."; 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; |