From 66bb33845eb77c68967c996575dbabba9c602554 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 10 Feb 2007 14:07:56 +0000 Subject: [PATCH] Compaction tables don't exist any more. llvm-svn: 34148 --- include/llvm/Bytecode/BytecodeHandler.h | 27 ------------------- lib/Bytecode/Reader/Analyzer.cpp | 35 ------------------------- 2 files changed, 62 deletions(-) diff --git a/include/llvm/Bytecode/BytecodeHandler.h b/include/llvm/Bytecode/BytecodeHandler.h index 43ca0240089..b8aecb57341 100644 --- a/include/llvm/Bytecode/BytecodeHandler.h +++ b/include/llvm/Bytecode/BytecodeHandler.h @@ -153,33 +153,6 @@ public: /// @brief Handle end of module globals block. virtual void handleModuleGlobalsEnd() {} - /// This method is called at the beginning of a compaction table. - /// @brief Handle start of compaction table. - virtual void handleCompactionTableBegin() {} - - /// @brief Handle start of a compaction table plane - virtual void handleCompactionTablePlane( - unsigned Ty, ///< The type of the plane (slot number) - unsigned NumEntries ///< The number of entries in the plane - ) {} - - /// @brief Handle a type entry in the compaction table - virtual void handleCompactionTableType( - unsigned i, ///< Index in the plane of this type - unsigned TypSlot, ///< Slot number for this type - const Type* ///< The type referenced by this slot - ) {} - - /// @brief Handle a value entry in the compaction table - virtual void handleCompactionTableValue( - unsigned i, ///< Index in the compaction table's type plane - unsigned TypSlot, ///< The slot (plane) of the type of this value - unsigned ValSlot ///< The global value slot of the value - ) {} - - /// @brief Handle end of a compaction table - virtual void handleCompactionTableEnd() {} - /// @brief Handle start of a symbol table virtual void handleTypeSymbolTableBegin( TypeSymbolTable* ST ///< The symbol table being filled diff --git a/lib/Bytecode/Reader/Analyzer.cpp b/lib/Bytecode/Reader/Analyzer.cpp index 68d0a929574..fe503f4d124 100644 --- a/lib/Bytecode/Reader/Analyzer.cpp +++ b/lib/Bytecode/Reader/Analyzer.cpp @@ -231,40 +231,6 @@ public: } } - virtual void handleCompactionTableBegin() { - if (os) - *os << " BLOCK: CompactionTable {\n"; - bca.numCmpctnTables++; - } - - virtual void handleCompactionTablePlane( unsigned Ty, unsigned NumEntries) { - if (os) - *os << " Plane: Ty=" << Ty << " Size=" << NumEntries << "\n"; - } - - virtual void handleCompactionTableType( unsigned i, unsigned TypSlot, - const Type* Ty ) { - if (os) { - *os << " Type: " << i << " Slot:" << TypSlot << " is "; - WriteTypeSymbolic(*os,Ty,M); - *os << "\n"; - } - } - - virtual void handleCompactionTableValue(unsigned i, unsigned TypSlot, - unsigned ValSlot) { - if (os) - *os << " Value: " << i << " TypSlot: " << TypSlot - << " ValSlot:" << ValSlot << "\n"; - if (ValSlot > bca.maxValueSlot) - bca.maxValueSlot = ValSlot; - } - - virtual void handleCompactionTableEnd() { - if (os) - *os << " } END BLOCK: CompactionTable\n"; - } - virtual void handleTypeSymbolTableBegin(TypeSymbolTable* ST) { bca.numSymTab++; if (os) @@ -624,7 +590,6 @@ void llvm::PrintBytecodeAnalysis(BytecodeAnalysis& bca, std::ostream& Out ) print(Out, "Number Of Instructions", bca.numInstructions); print(Out, "Number Of Long Instructions", bca.longInstructions); print(Out, "Number Of Operands", bca.numOperands); - print(Out, "Number Of Compaction Tables", bca.numCmpctnTables); print(Out, "Number Of Symbol Tables", bca.numSymTab); print(Out, "Number Of Dependent Libs", bca.numLibraries); print(Out, "Total Instruction Size", bca.instructionSize);