summaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-07 06:11:22 +0000
committerChris Lattner <sabre@nondot.org>2002-04-07 06:11:22 +0000
commit92940ac1c0363c8ccaa068d00286a61885465d7b (patch)
treed8d5eaa0f929c6a626f1f82221645d7d976cfe07 /lib/Bytecode
parent339ba45f1002e3175b3aed2536d32b5865a9042f (diff)
downloadllvm-92940ac1c0363c8ccaa068d00286a61885465d7b.tar.gz
llvm-92940ac1c0363c8ccaa068d00286a61885465d7b.tar.bz2
llvm-92940ac1c0363c8ccaa068d00286a61885465d7b.tar.xz
Enable better debug output. When debugging the type system, print out the
type tables after reading a bytecode file to make sure they are ok git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/ConstantReader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp
index 79bb68f555..89beddb956 100644
--- a/lib/Bytecode/Reader/ConstantReader.cpp
+++ b/lib/Bytecode/Reader/ConstantReader.cpp
@@ -134,6 +134,7 @@ void BytecodeParser::refineAbstractType(const DerivedType *OldType,
// something and when we reread the type later, we can replace the opaque type
// with a new resolved concrete type.
//
+void debug_type_tables();
bool BytecodeParser::parseTypeConstants(const uchar *&Buf, const uchar *EndBuf,
TypeValuesListTy &Tab,
unsigned NumEntries) {
@@ -169,8 +170,9 @@ bool BytecodeParser::parseTypeConstants(const uchar *&Buf, const uchar *EndBuf,
BCR_TRACE(5, "Resulting types:\n");
for (unsigned i = 0; i < NumEntries; ++i) {
- BCR_TRACE(5, cast<const Type>(Tab[i]) << "\n");
+ BCR_TRACE(5, (void*)Tab[i].get() << " - " << Tab[i].get() << "\n");
}
+ debug_type_tables();
return false;
}