aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/ReaderInternals.h
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2003-10-30 18:33:58 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2003-10-30 18:33:58 +0000
commit60048b8a664b453c858ef4998aade8e62cc6d3b6 (patch)
tree8dffb7da0a5e9f45248327784143c8afb1f47348 /lib/Bytecode/Reader/ReaderInternals.h
parent3dcc7b933594c628a874ac3881b782efe1efd1d4 (diff)
Put DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the code
inside DEBUG_OUTPUT so that it compiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ReaderInternals.h')
-rw-r--r--lib/Bytecode/Reader/ReaderInternals.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h
index 8eb138a167..79c5a0d9a6 100644
--- a/lib/Bytecode/Reader/ReaderInternals.h
+++ b/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;