From 5d1bdcd6f677442d6303f6e1db88c5fdf6ae382b Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Wed, 29 Oct 2003 03:12:12 +0000 Subject: [PATCH] Add more debugging info to help tracing the SlotCalculator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9575 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/SlotCalculator.cpp | 2 ++ lib/VMCore/SlotCalculator.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 9969550d0b0..c415ced0f73 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -40,6 +40,7 @@ SlotCalculator::SlotCalculator(const Module *M, bool IgnoreNamed) { // Preload table... Make sure that all of the primitive types are in the table // and that their Primitive ID is equal to their slot # // + SC_DEBUG("Inserting primitive types:\n"); for (unsigned i = 0; i < Type::FirstDerivedTyID; ++i) { assert(Type::getPrimitiveType((Type::PrimitiveID)i)); insertValue(Type::getPrimitiveType((Type::PrimitiveID)i), true); @@ -56,6 +57,7 @@ SlotCalculator::SlotCalculator(const Function *M, bool IgnoreNamed) { // Preload table... Make sure that all of the primitive types are in the table // and that their Primitive ID is equal to their slot # // + SC_DEBUG("Inserting primitive types:\n"); for (unsigned i = 0; i < Type::FirstDerivedTyID; ++i) { assert(Type::getPrimitiveType((Type::PrimitiveID)i)); insertValue(Type::getPrimitiveType((Type::PrimitiveID)i), true); diff --git a/lib/VMCore/SlotCalculator.cpp b/lib/VMCore/SlotCalculator.cpp index 9969550d0b0..c415ced0f73 100644 --- a/lib/VMCore/SlotCalculator.cpp +++ b/lib/VMCore/SlotCalculator.cpp @@ -40,6 +40,7 @@ SlotCalculator::SlotCalculator(const Module *M, bool IgnoreNamed) { // Preload table... Make sure that all of the primitive types are in the table // and that their Primitive ID is equal to their slot # // + SC_DEBUG("Inserting primitive types:\n"); for (unsigned i = 0; i < Type::FirstDerivedTyID; ++i) { assert(Type::getPrimitiveType((Type::PrimitiveID)i)); insertValue(Type::getPrimitiveType((Type::PrimitiveID)i), true); @@ -56,6 +57,7 @@ SlotCalculator::SlotCalculator(const Function *M, bool IgnoreNamed) { // Preload table... Make sure that all of the primitive types are in the table // and that their Primitive ID is equal to their slot # // + SC_DEBUG("Inserting primitive types:\n"); for (unsigned i = 0; i < Type::FirstDerivedTyID; ++i) { assert(Type::getPrimitiveType((Type::PrimitiveID)i)); insertValue(Type::getPrimitiveType((Type::PrimitiveID)i), true);