Compaction tables don't exist any more.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 10 Feb 2007 14:07:56 +0000 (14:07 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 10 Feb 2007 14:07:56 +0000 (14:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34148 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bytecode/BytecodeHandler.h
lib/Bytecode/Reader/Analyzer.cpp

index 43ca024008912b93a0f6c096791e8e7ca5399a0e..b8aecb573417f97694a013d1ddec7ee47b6fc1f5 100644 (file)
@@ -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
index 68d0a9295745678e75187c970df90c765e239e6d..fe503f4d124d2cbf870f39562c5af42717dfaca5 100644 (file)
@@ -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);