summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitb0df8fdcb8cb2e0545043c64ddb71e7b07bb745d (patch)
treea1906a468be907ea8a0f152f858d43b5968d1e22 /llvm
parent054ec0ec05c150fc1fe8973afef15417b5449c1c (diff)
downloadbcm5719-llvm-b0df8fdcb8cb2e0545043c64ddb71e7b07bb745d.tar.gz
bcm5719-llvm-b0df8fdcb8cb2e0545043c64ddb71e7b07bb745d.zip
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 llvm-svn: 2126
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Bytecode/Reader/ConstantReader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/ConstantReader.cpp b/llvm/lib/Bytecode/Reader/ConstantReader.cpp
index 79bb68f5559..89beddb9568 100644
--- a/llvm/lib/Bytecode/Reader/ConstantReader.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud